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

package com.ywt.gapi.message;

/**
 * <pre>
 *发送小程序模板消息请求结构体
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.message.SendMPTemplateMessageRequest}
 */
public final class SendMPTemplateMessageRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.message.SendMPTemplateMessageRequest)
    SendMPTemplateMessageRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SendMPTemplateMessageRequest.newBuilder() to construct.
  private SendMPTemplateMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SendMPTemplateMessageRequest() {
    touser_ = "";
    templateId_ = "";
    page_ = "";
    formId_ = "";
    keywords_ = java.util.Collections.emptyList();
    emphasisKeyword_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SendMPTemplateMessageRequest(
      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 8: {

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

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

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

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

            formId_ = s;
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              keywords_ = new java.util.ArrayList<com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword>();
              mutable_bitField0_ |= 0x00000001;
            }
            keywords_.add(
                input.readMessage(com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.parser(), extensionRegistry));
            break;
          }
          case 58: {
            java.lang.String s = input.readStringRequireUtf8();

            emphasisKeyword_ = 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)) {
        keywords_ = java.util.Collections.unmodifiableList(keywords_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.message.SendMPTemplateMessageRequest.class, com.ywt.gapi.message.SendMPTemplateMessageRequest.Builder.class);
  }

  public interface KeywordOrBuilder extends
      // @@protoc_insertion_point(interface_extends:com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword)
      com.google.protobuf.MessageOrBuilder {

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

    /**
     * <code>string color = 2;</code>
     * @return The color.
     */
    java.lang.String getColor();
    /**
     * <code>string color = 2;</code>
     * @return The bytes for color.
     */
    com.google.protobuf.ByteString
        getColorBytes();
  }
  /**
   * Protobuf type {@code com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword}
   */
  public static final class Keyword extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword)
      KeywordOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Keyword.newBuilder() to construct.
    private Keyword(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Keyword() {
      value_ = "";
      color_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Keyword(
        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();

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

              color_ = 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.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_Keyword_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_Keyword_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.class, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder.class);
    }

    public static final int VALUE_FIELD_NUMBER = 1;
    private volatile java.lang.Object value_;
    /**
     * <code>string value = 1;</code>
     * @return The value.
     */
    @java.lang.Override
    public java.lang.String getValue() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        value_ = s;
        return s;
      }
    }
    /**
     * <code>string value = 1;</code>
     * @return The bytes for value.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getValueBytes() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        value_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int COLOR_FIELD_NUMBER = 2;
    private volatile java.lang.Object color_;
    /**
     * <code>string color = 2;</code>
     * @return The color.
     */
    @java.lang.Override
    public java.lang.String getColor() {
      java.lang.Object ref = color_;
      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();
        color_ = s;
        return s;
      }
    }
    /**
     * <code>string color = 2;</code>
     * @return The bytes for color.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getColorBytes() {
      java.lang.Object ref = color_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        color_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, color_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, color_);
      }
      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.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword)) {
        return super.equals(obj);
      }
      com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword other = (com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword) obj;

      if (!getValue()
          .equals(other.getValue())) return false;
      if (!getColor()
          .equals(other.getColor())) 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) + VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getValue().hashCode();
      hash = (37 * hash) + COLOR_FIELD_NUMBER;
      hash = (53 * hash) + getColor().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword 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.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword 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.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword 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.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword 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 com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword)
        com.ywt.gapi.message.SendMPTemplateMessageRequest.KeywordOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_Keyword_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_Keyword_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.class, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder.class);
      }

      // Construct using com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.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();
        value_ = "";

        color_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_Keyword_descriptor;
      }

      @java.lang.Override
      public com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword getDefaultInstanceForType() {
        return com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.getDefaultInstance();
      }

      @java.lang.Override
      public com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword build() {
        com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword buildPartial() {
        com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword result = new com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword(this);
        result.value_ = value_;
        result.color_ = color_;
        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.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword) {
          return mergeFrom((com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword other) {
        if (other == com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.getDefaultInstance()) return this;
        if (!other.getValue().isEmpty()) {
          value_ = other.value_;
          onChanged();
        }
        if (!other.getColor().isEmpty()) {
          color_ = other.color_;
          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.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

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

      private java.lang.Object color_ = "";
      /**
       * <code>string color = 2;</code>
       * @return The color.
       */
      public java.lang.String getColor() {
        java.lang.Object ref = color_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          color_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string color = 2;</code>
       * @return The bytes for color.
       */
      public com.google.protobuf.ByteString
          getColorBytes() {
        java.lang.Object ref = color_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          color_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string color = 2;</code>
       * @param value The color to set.
       * @return This builder for chaining.
       */
      public Builder setColor(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        color_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string color = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearColor() {
        
        color_ = getDefaultInstance().getColor();
        onChanged();
        return this;
      }
      /**
       * <code>string color = 2;</code>
       * @param value The bytes for color to set.
       * @return This builder for chaining.
       */
      public Builder setColorBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        color_ = 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:com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword)
    }

    // @@protoc_insertion_point(class_scope:com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword)
    private static final com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword();
    }

    public static com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    @java.lang.Override
    public com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public static final int TERMINAL_FIELD_NUMBER = 1;
  private int terminal_;
  /**
   * <code>int32 terminal = 1;</code>
   * @return The terminal.
   */
  @java.lang.Override
  public int getTerminal() {
    return terminal_;
  }

  public static final int TOUSER_FIELD_NUMBER = 2;
  private volatile java.lang.Object touser_;
  /**
   * <pre>
   *接收者（用户）的 openid
   * </pre>
   *
   * <code>string touser = 2;</code>
   * @return The touser.
   */
  @java.lang.Override
  public java.lang.String getTouser() {
    java.lang.Object ref = touser_;
    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();
      touser_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *接收者（用户）的 openid
   * </pre>
   *
   * <code>string touser = 2;</code>
   * @return The bytes for touser.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTouserBytes() {
    java.lang.Object ref = touser_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      touser_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TEMPLATEID_FIELD_NUMBER = 3;
  private volatile java.lang.Object templateId_;
  /**
   * <pre>
   *所需下发的模板消息的id
   * </pre>
   *
   * <code>string templateId = 3;</code>
   * @return The templateId.
   */
  @java.lang.Override
  public java.lang.String getTemplateId() {
    java.lang.Object ref = templateId_;
    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();
      templateId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *所需下发的模板消息的id
   * </pre>
   *
   * <code>string templateId = 3;</code>
   * @return The bytes for templateId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTemplateIdBytes() {
    java.lang.Object ref = templateId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      templateId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PAGE_FIELD_NUMBER = 4;
  private volatile java.lang.Object page_;
  /**
   * <pre>
   *点击模板卡片后的跳转页面，仅限本小程序内的页面。支持带参数,（示例index?foo=bar）。该字段不填则模板无跳转
   * </pre>
   *
   * <code>string page = 4;</code>
   * @return The page.
   */
  @java.lang.Override
  public java.lang.String getPage() {
    java.lang.Object ref = page_;
    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();
      page_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *点击模板卡片后的跳转页面，仅限本小程序内的页面。支持带参数,（示例index?foo=bar）。该字段不填则模板无跳转
   * </pre>
   *
   * <code>string page = 4;</code>
   * @return The bytes for page.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPageBytes() {
    java.lang.Object ref = page_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      page_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FORMID_FIELD_NUMBER = 5;
  private volatile java.lang.Object formId_;
  /**
   * <pre>
   *表单提交场景下，为 submit 事件带上的 formId；支付场景下，为本次支付的 prepay_id
   * </pre>
   *
   * <code>string formId = 5;</code>
   * @return The formId.
   */
  @java.lang.Override
  public java.lang.String getFormId() {
    java.lang.Object ref = formId_;
    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();
      formId_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *表单提交场景下，为 submit 事件带上的 formId；支付场景下，为本次支付的 prepay_id
   * </pre>
   *
   * <code>string formId = 5;</code>
   * @return The bytes for formId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFormIdBytes() {
    java.lang.Object ref = formId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      formId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int KEYWORDS_FIELD_NUMBER = 6;
  private java.util.List<com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword> keywords_;
  /**
   * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
   */
  @java.lang.Override
  public java.util.List<com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword> getKeywordsList() {
    return keywords_;
  }
  /**
   * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.ywt.gapi.message.SendMPTemplateMessageRequest.KeywordOrBuilder> 
      getKeywordsOrBuilderList() {
    return keywords_;
  }
  /**
   * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
   */
  @java.lang.Override
  public int getKeywordsCount() {
    return keywords_.size();
  }
  /**
   * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword getKeywords(int index) {
    return keywords_.get(index);
  }
  /**
   * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
   */
  @java.lang.Override
  public com.ywt.gapi.message.SendMPTemplateMessageRequest.KeywordOrBuilder getKeywordsOrBuilder(
      int index) {
    return keywords_.get(index);
  }

  public static final int EMPHASISKEYWORD_FIELD_NUMBER = 7;
  private volatile java.lang.Object emphasisKeyword_;
  /**
   * <pre>
   *模板需要放大的关键词，不填则默认无放大
   * </pre>
   *
   * <code>string emphasisKeyword = 7;</code>
   * @return The emphasisKeyword.
   */
  @java.lang.Override
  public java.lang.String getEmphasisKeyword() {
    java.lang.Object ref = emphasisKeyword_;
    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();
      emphasisKeyword_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *模板需要放大的关键词，不填则默认无放大
   * </pre>
   *
   * <code>string emphasisKeyword = 7;</code>
   * @return The bytes for emphasisKeyword.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getEmphasisKeywordBytes() {
    java.lang.Object ref = emphasisKeyword_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      emphasisKeyword_ = 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 (terminal_ != 0) {
      output.writeInt32(1, terminal_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(touser_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, touser_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, templateId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(page_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, page_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, formId_);
    }
    for (int i = 0; i < keywords_.size(); i++) {
      output.writeMessage(6, keywords_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emphasisKeyword_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, emphasisKeyword_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (terminal_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, terminal_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(touser_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, touser_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(templateId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, templateId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(page_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, page_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, formId_);
    }
    for (int i = 0; i < keywords_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, keywords_.get(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emphasisKeyword_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, emphasisKeyword_);
    }
    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.ywt.gapi.message.SendMPTemplateMessageRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.message.SendMPTemplateMessageRequest other = (com.ywt.gapi.message.SendMPTemplateMessageRequest) obj;

    if (getTerminal()
        != other.getTerminal()) return false;
    if (!getTouser()
        .equals(other.getTouser())) return false;
    if (!getTemplateId()
        .equals(other.getTemplateId())) return false;
    if (!getPage()
        .equals(other.getPage())) return false;
    if (!getFormId()
        .equals(other.getFormId())) return false;
    if (!getKeywordsList()
        .equals(other.getKeywordsList())) return false;
    if (!getEmphasisKeyword()
        .equals(other.getEmphasisKeyword())) 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) + TERMINAL_FIELD_NUMBER;
    hash = (53 * hash) + getTerminal();
    hash = (37 * hash) + TOUSER_FIELD_NUMBER;
    hash = (53 * hash) + getTouser().hashCode();
    hash = (37 * hash) + TEMPLATEID_FIELD_NUMBER;
    hash = (53 * hash) + getTemplateId().hashCode();
    hash = (37 * hash) + PAGE_FIELD_NUMBER;
    hash = (53 * hash) + getPage().hashCode();
    hash = (37 * hash) + FORMID_FIELD_NUMBER;
    hash = (53 * hash) + getFormId().hashCode();
    if (getKeywordsCount() > 0) {
      hash = (37 * hash) + KEYWORDS_FIELD_NUMBER;
      hash = (53 * hash) + getKeywordsList().hashCode();
    }
    hash = (37 * hash) + EMPHASISKEYWORD_FIELD_NUMBER;
    hash = (53 * hash) + getEmphasisKeyword().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.message.SendMPTemplateMessageRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.message.SendMPTemplateMessageRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.message.SendMPTemplateMessageRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.message.SendMPTemplateMessageRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.message.SendMPTemplateMessageRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.message.SendMPTemplateMessageRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.message.SendMPTemplateMessageRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.message.SendMPTemplateMessageRequest 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.ywt.gapi.message.SendMPTemplateMessageRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.message.SendMPTemplateMessageRequest 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.ywt.gapi.message.SendMPTemplateMessageRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.message.SendMPTemplateMessageRequest 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.ywt.gapi.message.SendMPTemplateMessageRequest 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;
  }
  /**
   * <pre>
   *发送小程序模板消息请求结构体
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.message.SendMPTemplateMessageRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.message.SendMPTemplateMessageRequest)
      com.ywt.gapi.message.SendMPTemplateMessageRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.message.SendMPTemplateMessageRequest.class, com.ywt.gapi.message.SendMPTemplateMessageRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.message.SendMPTemplateMessageRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

      touser_ = "";

      templateId_ = "";

      page_ = "";

      formId_ = "";

      if (keywordsBuilder_ == null) {
        keywords_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        keywordsBuilder_.clear();
      }
      emphasisKeyword_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.message.MessageProto.internal_static_com_ywt_gapi_message_SendMPTemplateMessageRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.message.SendMPTemplateMessageRequest getDefaultInstanceForType() {
      return com.ywt.gapi.message.SendMPTemplateMessageRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.message.SendMPTemplateMessageRequest build() {
      com.ywt.gapi.message.SendMPTemplateMessageRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.message.SendMPTemplateMessageRequest buildPartial() {
      com.ywt.gapi.message.SendMPTemplateMessageRequest result = new com.ywt.gapi.message.SendMPTemplateMessageRequest(this);
      int from_bitField0_ = bitField0_;
      result.terminal_ = terminal_;
      result.touser_ = touser_;
      result.templateId_ = templateId_;
      result.page_ = page_;
      result.formId_ = formId_;
      if (keywordsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          keywords_ = java.util.Collections.unmodifiableList(keywords_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.keywords_ = keywords_;
      } else {
        result.keywords_ = keywordsBuilder_.build();
      }
      result.emphasisKeyword_ = emphasisKeyword_;
      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.ywt.gapi.message.SendMPTemplateMessageRequest) {
        return mergeFrom((com.ywt.gapi.message.SendMPTemplateMessageRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.message.SendMPTemplateMessageRequest other) {
      if (other == com.ywt.gapi.message.SendMPTemplateMessageRequest.getDefaultInstance()) return this;
      if (other.getTerminal() != 0) {
        setTerminal(other.getTerminal());
      }
      if (!other.getTouser().isEmpty()) {
        touser_ = other.touser_;
        onChanged();
      }
      if (!other.getTemplateId().isEmpty()) {
        templateId_ = other.templateId_;
        onChanged();
      }
      if (!other.getPage().isEmpty()) {
        page_ = other.page_;
        onChanged();
      }
      if (!other.getFormId().isEmpty()) {
        formId_ = other.formId_;
        onChanged();
      }
      if (keywordsBuilder_ == null) {
        if (!other.keywords_.isEmpty()) {
          if (keywords_.isEmpty()) {
            keywords_ = other.keywords_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureKeywordsIsMutable();
            keywords_.addAll(other.keywords_);
          }
          onChanged();
        }
      } else {
        if (!other.keywords_.isEmpty()) {
          if (keywordsBuilder_.isEmpty()) {
            keywordsBuilder_.dispose();
            keywordsBuilder_ = null;
            keywords_ = other.keywords_;
            bitField0_ = (bitField0_ & ~0x00000001);
            keywordsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getKeywordsFieldBuilder() : null;
          } else {
            keywordsBuilder_.addAllMessages(other.keywords_);
          }
        }
      }
      if (!other.getEmphasisKeyword().isEmpty()) {
        emphasisKeyword_ = other.emphasisKeyword_;
        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.ywt.gapi.message.SendMPTemplateMessageRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.message.SendMPTemplateMessageRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int terminal_ ;
    /**
     * <code>int32 terminal = 1;</code>
     * @return The terminal.
     */
    @java.lang.Override
    public int getTerminal() {
      return terminal_;
    }
    /**
     * <code>int32 terminal = 1;</code>
     * @param value The terminal to set.
     * @return This builder for chaining.
     */
    public Builder setTerminal(int value) {
      
      terminal_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 terminal = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearTerminal() {
      
      terminal_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object touser_ = "";
    /**
     * <pre>
     *接收者（用户）的 openid
     * </pre>
     *
     * <code>string touser = 2;</code>
     * @return The touser.
     */
    public java.lang.String getTouser() {
      java.lang.Object ref = touser_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        touser_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *接收者（用户）的 openid
     * </pre>
     *
     * <code>string touser = 2;</code>
     * @return The bytes for touser.
     */
    public com.google.protobuf.ByteString
        getTouserBytes() {
      java.lang.Object ref = touser_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        touser_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *接收者（用户）的 openid
     * </pre>
     *
     * <code>string touser = 2;</code>
     * @param value The touser to set.
     * @return This builder for chaining.
     */
    public Builder setTouser(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      touser_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *接收者（用户）的 openid
     * </pre>
     *
     * <code>string touser = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearTouser() {
      
      touser_ = getDefaultInstance().getTouser();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *接收者（用户）的 openid
     * </pre>
     *
     * <code>string touser = 2;</code>
     * @param value The bytes for touser to set.
     * @return This builder for chaining.
     */
    public Builder setTouserBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      touser_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object templateId_ = "";
    /**
     * <pre>
     *所需下发的模板消息的id
     * </pre>
     *
     * <code>string templateId = 3;</code>
     * @return The templateId.
     */
    public java.lang.String getTemplateId() {
      java.lang.Object ref = templateId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        templateId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *所需下发的模板消息的id
     * </pre>
     *
     * <code>string templateId = 3;</code>
     * @return The bytes for templateId.
     */
    public com.google.protobuf.ByteString
        getTemplateIdBytes() {
      java.lang.Object ref = templateId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        templateId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *所需下发的模板消息的id
     * </pre>
     *
     * <code>string templateId = 3;</code>
     * @param value The templateId to set.
     * @return This builder for chaining.
     */
    public Builder setTemplateId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      templateId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *所需下发的模板消息的id
     * </pre>
     *
     * <code>string templateId = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearTemplateId() {
      
      templateId_ = getDefaultInstance().getTemplateId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *所需下发的模板消息的id
     * </pre>
     *
     * <code>string templateId = 3;</code>
     * @param value The bytes for templateId to set.
     * @return This builder for chaining.
     */
    public Builder setTemplateIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      templateId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object page_ = "";
    /**
     * <pre>
     *点击模板卡片后的跳转页面，仅限本小程序内的页面。支持带参数,（示例index?foo=bar）。该字段不填则模板无跳转
     * </pre>
     *
     * <code>string page = 4;</code>
     * @return The page.
     */
    public java.lang.String getPage() {
      java.lang.Object ref = page_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        page_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *点击模板卡片后的跳转页面，仅限本小程序内的页面。支持带参数,（示例index?foo=bar）。该字段不填则模板无跳转
     * </pre>
     *
     * <code>string page = 4;</code>
     * @return The bytes for page.
     */
    public com.google.protobuf.ByteString
        getPageBytes() {
      java.lang.Object ref = page_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        page_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *点击模板卡片后的跳转页面，仅限本小程序内的页面。支持带参数,（示例index?foo=bar）。该字段不填则模板无跳转
     * </pre>
     *
     * <code>string page = 4;</code>
     * @param value The page to set.
     * @return This builder for chaining.
     */
    public Builder setPage(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      page_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *点击模板卡片后的跳转页面，仅限本小程序内的页面。支持带参数,（示例index?foo=bar）。该字段不填则模板无跳转
     * </pre>
     *
     * <code>string page = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearPage() {
      
      page_ = getDefaultInstance().getPage();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *点击模板卡片后的跳转页面，仅限本小程序内的页面。支持带参数,（示例index?foo=bar）。该字段不填则模板无跳转
     * </pre>
     *
     * <code>string page = 4;</code>
     * @param value The bytes for page to set.
     * @return This builder for chaining.
     */
    public Builder setPageBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      page_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object formId_ = "";
    /**
     * <pre>
     *表单提交场景下，为 submit 事件带上的 formId；支付场景下，为本次支付的 prepay_id
     * </pre>
     *
     * <code>string formId = 5;</code>
     * @return The formId.
     */
    public java.lang.String getFormId() {
      java.lang.Object ref = formId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        formId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *表单提交场景下，为 submit 事件带上的 formId；支付场景下，为本次支付的 prepay_id
     * </pre>
     *
     * <code>string formId = 5;</code>
     * @return The bytes for formId.
     */
    public com.google.protobuf.ByteString
        getFormIdBytes() {
      java.lang.Object ref = formId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        formId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *表单提交场景下，为 submit 事件带上的 formId；支付场景下，为本次支付的 prepay_id
     * </pre>
     *
     * <code>string formId = 5;</code>
     * @param value The formId to set.
     * @return This builder for chaining.
     */
    public Builder setFormId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      formId_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *表单提交场景下，为 submit 事件带上的 formId；支付场景下，为本次支付的 prepay_id
     * </pre>
     *
     * <code>string formId = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearFormId() {
      
      formId_ = getDefaultInstance().getFormId();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *表单提交场景下，为 submit 事件带上的 formId；支付场景下，为本次支付的 prepay_id
     * </pre>
     *
     * <code>string formId = 5;</code>
     * @param value The bytes for formId to set.
     * @return This builder for chaining.
     */
    public Builder setFormIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      formId_ = value;
      onChanged();
      return this;
    }

    private java.util.List<com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword> keywords_ =
      java.util.Collections.emptyList();
    private void ensureKeywordsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        keywords_ = new java.util.ArrayList<com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword>(keywords_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder, com.ywt.gapi.message.SendMPTemplateMessageRequest.KeywordOrBuilder> keywordsBuilder_;

    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public java.util.List<com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword> getKeywordsList() {
      if (keywordsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(keywords_);
      } else {
        return keywordsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public int getKeywordsCount() {
      if (keywordsBuilder_ == null) {
        return keywords_.size();
      } else {
        return keywordsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword getKeywords(int index) {
      if (keywordsBuilder_ == null) {
        return keywords_.get(index);
      } else {
        return keywordsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public Builder setKeywords(
        int index, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword value) {
      if (keywordsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureKeywordsIsMutable();
        keywords_.set(index, value);
        onChanged();
      } else {
        keywordsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public Builder setKeywords(
        int index, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder builderForValue) {
      if (keywordsBuilder_ == null) {
        ensureKeywordsIsMutable();
        keywords_.set(index, builderForValue.build());
        onChanged();
      } else {
        keywordsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public Builder addKeywords(com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword value) {
      if (keywordsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureKeywordsIsMutable();
        keywords_.add(value);
        onChanged();
      } else {
        keywordsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public Builder addKeywords(
        int index, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword value) {
      if (keywordsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureKeywordsIsMutable();
        keywords_.add(index, value);
        onChanged();
      } else {
        keywordsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public Builder addKeywords(
        com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder builderForValue) {
      if (keywordsBuilder_ == null) {
        ensureKeywordsIsMutable();
        keywords_.add(builderForValue.build());
        onChanged();
      } else {
        keywordsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public Builder addKeywords(
        int index, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder builderForValue) {
      if (keywordsBuilder_ == null) {
        ensureKeywordsIsMutable();
        keywords_.add(index, builderForValue.build());
        onChanged();
      } else {
        keywordsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public Builder addAllKeywords(
        java.lang.Iterable<? extends com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword> values) {
      if (keywordsBuilder_ == null) {
        ensureKeywordsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, keywords_);
        onChanged();
      } else {
        keywordsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public Builder clearKeywords() {
      if (keywordsBuilder_ == null) {
        keywords_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        keywordsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public Builder removeKeywords(int index) {
      if (keywordsBuilder_ == null) {
        ensureKeywordsIsMutable();
        keywords_.remove(index);
        onChanged();
      } else {
        keywordsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder getKeywordsBuilder(
        int index) {
      return getKeywordsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public com.ywt.gapi.message.SendMPTemplateMessageRequest.KeywordOrBuilder getKeywordsOrBuilder(
        int index) {
      if (keywordsBuilder_ == null) {
        return keywords_.get(index);  } else {
        return keywordsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public java.util.List<? extends com.ywt.gapi.message.SendMPTemplateMessageRequest.KeywordOrBuilder> 
         getKeywordsOrBuilderList() {
      if (keywordsBuilder_ != null) {
        return keywordsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(keywords_);
      }
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder addKeywordsBuilder() {
      return getKeywordsFieldBuilder().addBuilder(
          com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder addKeywordsBuilder(
        int index) {
      return getKeywordsFieldBuilder().addBuilder(
          index, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.getDefaultInstance());
    }
    /**
     * <code>repeated .com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword keywords = 6;</code>
     */
    public java.util.List<com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder> 
         getKeywordsBuilderList() {
      return getKeywordsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder, com.ywt.gapi.message.SendMPTemplateMessageRequest.KeywordOrBuilder> 
        getKeywordsFieldBuilder() {
      if (keywordsBuilder_ == null) {
        keywordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword, com.ywt.gapi.message.SendMPTemplateMessageRequest.Keyword.Builder, com.ywt.gapi.message.SendMPTemplateMessageRequest.KeywordOrBuilder>(
                keywords_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        keywords_ = null;
      }
      return keywordsBuilder_;
    }

    private java.lang.Object emphasisKeyword_ = "";
    /**
     * <pre>
     *模板需要放大的关键词，不填则默认无放大
     * </pre>
     *
     * <code>string emphasisKeyword = 7;</code>
     * @return The emphasisKeyword.
     */
    public java.lang.String getEmphasisKeyword() {
      java.lang.Object ref = emphasisKeyword_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        emphasisKeyword_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *模板需要放大的关键词，不填则默认无放大
     * </pre>
     *
     * <code>string emphasisKeyword = 7;</code>
     * @return The bytes for emphasisKeyword.
     */
    public com.google.protobuf.ByteString
        getEmphasisKeywordBytes() {
      java.lang.Object ref = emphasisKeyword_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        emphasisKeyword_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *模板需要放大的关键词，不填则默认无放大
     * </pre>
     *
     * <code>string emphasisKeyword = 7;</code>
     * @param value The emphasisKeyword to set.
     * @return This builder for chaining.
     */
    public Builder setEmphasisKeyword(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      emphasisKeyword_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *模板需要放大的关键词，不填则默认无放大
     * </pre>
     *
     * <code>string emphasisKeyword = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearEmphasisKeyword() {
      
      emphasisKeyword_ = getDefaultInstance().getEmphasisKeyword();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *模板需要放大的关键词，不填则默认无放大
     * </pre>
     *
     * <code>string emphasisKeyword = 7;</code>
     * @param value The bytes for emphasisKeyword to set.
     * @return This builder for chaining.
     */
    public Builder setEmphasisKeywordBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      emphasisKeyword_ = 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:com.ywt.gapi.message.SendMPTemplateMessageRequest)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.message.SendMPTemplateMessageRequest)
  private static final com.ywt.gapi.message.SendMPTemplateMessageRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ywt.gapi.message.SendMPTemplateMessageRequest();
  }

  public static com.ywt.gapi.message.SendMPTemplateMessageRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.message.SendMPTemplateMessageRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

