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

package com.caliverse.admin.domain.RabbitMq.message;

/**
 * Protobuf type {@code UgqDialogSequenceAction}
 */
public final class UgqDialogSequenceAction extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:UgqDialogSequenceAction)
    UgqDialogSequenceActionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use UgqDialogSequenceAction.newBuilder() to construct.
  private UgqDialogSequenceAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private UgqDialogSequenceAction() {
    contition_ = "";
    talker_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqDialogSequenceAction_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqDialogSequenceAction_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction.class, com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction.Builder.class);
  }

  public static final int CONTITION_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object contition_ = "";
  /**
   * <code>string contition = 1;</code>
   * @return The contition.
   */
  @java.lang.Override
  public java.lang.String getContition() {
    java.lang.Object ref = contition_;
    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();
      contition_ = s;
      return s;
    }
  }
  /**
   * <code>string contition = 1;</code>
   * @return The bytes for contition.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getContitionBytes() {
    java.lang.Object ref = contition_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      contition_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ACTIONTYPE_FIELD_NUMBER = 2;
  private int actionType_ = 0;
  /**
   * <code>int32 actionType = 2;</code>
   * @return The actionType.
   */
  @java.lang.Override
  public int getActionType() {
    return actionType_;
  }

  public static final int SUBTYPE_FIELD_NUMBER = 3;
  private int subType_ = 0;
  /**
   * <code>int32 subType = 3;</code>
   * @return The subType.
   */
  @java.lang.Override
  public int getSubType() {
    return subType_;
  }

  public static final int ACTIONNUMBER_FIELD_NUMBER = 4;
  private int actionNumber_ = 0;
  /**
   * <code>int32 actionNumber = 4;</code>
   * @return The actionNumber.
   */
  @java.lang.Override
  public int getActionNumber() {
    return actionNumber_;
  }

  public static final int ACTIONINDEX_FIELD_NUMBER = 5;
  private int actionIndex_ = 0;
  /**
   * <code>int32 actionIndex = 5;</code>
   * @return The actionIndex.
   */
  @java.lang.Override
  public int getActionIndex() {
    return actionIndex_;
  }

  public static final int TALKER_FIELD_NUMBER = 6;
  private int talker_ = 0;
  /**
   * <code>.UgqDialogueTalker talker = 6;</code>
   * @return The enum numeric value on the wire for talker.
   */
  @java.lang.Override public int getTalkerValue() {
    return talker_;
  }
  /**
   * <code>.UgqDialogueTalker talker = 6;</code>
   * @return The talker.
   */
  @java.lang.Override public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker getTalker() {
    com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker result = com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker.forNumber(talker_);
    return result == null ? com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker.UNRECOGNIZED : result;
  }

  public static final int TALK_FIELD_NUMBER = 7;
  private com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient talk_;
  /**
   * <code>.UgqGameTextDataForClient talk = 7;</code>
   * @return Whether the talk field is set.
   */
  @java.lang.Override
  public boolean hasTalk() {
    return talk_ != null;
  }
  /**
   * <code>.UgqGameTextDataForClient talk = 7;</code>
   * @return The talk.
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient getTalk() {
    return talk_ == null ? com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.getDefaultInstance() : talk_;
  }
  /**
   * <code>.UgqGameTextDataForClient talk = 7;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClientOrBuilder getTalkOrBuilder() {
    return talk_ == null ? com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.getDefaultInstance() : talk_;
  }

  public static final int ISDIALOGUE_FIELD_NUMBER = 8;
  private int isDialogue_ = 0;
  /**
   * <code>int32 isDialogue = 8;</code>
   * @return The isDialogue.
   */
  @java.lang.Override
  public int getIsDialogue() {
    return isDialogue_;
  }

  public static final int NPCACTION_FIELD_NUMBER = 9;
  private int npcAction_ = 0;
  /**
   * <code>int32 NpcAction = 9;</code>
   * @return The npcAction.
   */
  @java.lang.Override
  public int getNpcAction() {
    return npcAction_;
  }

  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(contition_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contition_);
    }
    if (actionType_ != 0) {
      output.writeInt32(2, actionType_);
    }
    if (subType_ != 0) {
      output.writeInt32(3, subType_);
    }
    if (actionNumber_ != 0) {
      output.writeInt32(4, actionNumber_);
    }
    if (actionIndex_ != 0) {
      output.writeInt32(5, actionIndex_);
    }
    if (talker_ != com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker.Player.getNumber()) {
      output.writeEnum(6, talker_);
    }
    if (talk_ != null) {
      output.writeMessage(7, getTalk());
    }
    if (isDialogue_ != 0) {
      output.writeInt32(8, isDialogue_);
    }
    if (npcAction_ != 0) {
      output.writeInt32(9, npcAction_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contition_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contition_);
    }
    if (actionType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, actionType_);
    }
    if (subType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, subType_);
    }
    if (actionNumber_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(4, actionNumber_);
    }
    if (actionIndex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, actionIndex_);
    }
    if (talker_ != com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker.Player.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(6, talker_);
    }
    if (talk_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, getTalk());
    }
    if (isDialogue_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, isDialogue_);
    }
    if (npcAction_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, npcAction_);
    }
    size += getUnknownFields().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.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction)) {
      return super.equals(obj);
    }
    com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction other = (com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction) obj;

    if (!getContition()
        .equals(other.getContition())) return false;
    if (getActionType()
        != other.getActionType()) return false;
    if (getSubType()
        != other.getSubType()) return false;
    if (getActionNumber()
        != other.getActionNumber()) return false;
    if (getActionIndex()
        != other.getActionIndex()) return false;
    if (talker_ != other.talker_) return false;
    if (hasTalk() != other.hasTalk()) return false;
    if (hasTalk()) {
      if (!getTalk()
          .equals(other.getTalk())) return false;
    }
    if (getIsDialogue()
        != other.getIsDialogue()) return false;
    if (getNpcAction()
        != other.getNpcAction()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CONTITION_FIELD_NUMBER;
    hash = (53 * hash) + getContition().hashCode();
    hash = (37 * hash) + ACTIONTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getActionType();
    hash = (37 * hash) + SUBTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getSubType();
    hash = (37 * hash) + ACTIONNUMBER_FIELD_NUMBER;
    hash = (53 * hash) + getActionNumber();
    hash = (37 * hash) + ACTIONINDEX_FIELD_NUMBER;
    hash = (53 * hash) + getActionIndex();
    hash = (37 * hash) + TALKER_FIELD_NUMBER;
    hash = (53 * hash) + talker_;
    if (hasTalk()) {
      hash = (37 * hash) + TALK_FIELD_NUMBER;
      hash = (53 * hash) + getTalk().hashCode();
    }
    hash = (37 * hash) + ISDIALOGUE_FIELD_NUMBER;
    hash = (53 * hash) + getIsDialogue();
    hash = (37 * hash) + NPCACTION_FIELD_NUMBER;
    hash = (53 * hash) + getNpcAction();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction 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.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction 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.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction 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.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction 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 UgqDialogSequenceAction}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:UgqDialogSequenceAction)
      com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceActionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqDialogSequenceAction_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqDialogSequenceAction_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction.class, com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction.Builder.class);
    }

    // Construct using com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      contition_ = "";
      actionType_ = 0;
      subType_ = 0;
      actionNumber_ = 0;
      actionIndex_ = 0;
      talker_ = 0;
      talk_ = null;
      if (talkBuilder_ != null) {
        talkBuilder_.dispose();
        talkBuilder_ = null;
      }
      isDialogue_ = 0;
      npcAction_ = 0;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqDialogSequenceAction_descriptor;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction getDefaultInstanceForType() {
      return com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction.getDefaultInstance();
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction build() {
      com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction buildPartial() {
      com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction result = new com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.contition_ = contition_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.actionType_ = actionType_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.subType_ = subType_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.actionNumber_ = actionNumber_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.actionIndex_ = actionIndex_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.talker_ = talker_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.talk_ = talkBuilder_ == null
            ? talk_
            : talkBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.isDialogue_ = isDialogue_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.npcAction_ = npcAction_;
      }
    }

    @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.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction) {
        return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction other) {
      if (other == com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction.getDefaultInstance()) return this;
      if (!other.getContition().isEmpty()) {
        contition_ = other.contition_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.getActionType() != 0) {
        setActionType(other.getActionType());
      }
      if (other.getSubType() != 0) {
        setSubType(other.getSubType());
      }
      if (other.getActionNumber() != 0) {
        setActionNumber(other.getActionNumber());
      }
      if (other.getActionIndex() != 0) {
        setActionIndex(other.getActionIndex());
      }
      if (other.talker_ != 0) {
        setTalkerValue(other.getTalkerValue());
      }
      if (other.hasTalk()) {
        mergeTalk(other.getTalk());
      }
      if (other.getIsDialogue() != 0) {
        setIsDialogue(other.getIsDialogue());
      }
      if (other.getNpcAction() != 0) {
        setNpcAction(other.getNpcAction());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              contition_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              actionType_ = input.readInt32();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 24: {
              subType_ = input.readInt32();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 32: {
              actionNumber_ = input.readInt32();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 40: {
              actionIndex_ = input.readInt32();
              bitField0_ |= 0x00000010;
              break;
            } // case 40
            case 48: {
              talker_ = input.readEnum();
              bitField0_ |= 0x00000020;
              break;
            } // case 48
            case 58: {
              input.readMessage(
                  getTalkFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000040;
              break;
            } // case 58
            case 64: {
              isDialogue_ = input.readInt32();
              bitField0_ |= 0x00000080;
              break;
            } // case 64
            case 72: {
              npcAction_ = input.readInt32();
              bitField0_ |= 0x00000100;
              break;
            } // case 72
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.lang.Object contition_ = "";
    /**
     * <code>string contition = 1;</code>
     * @return The contition.
     */
    public java.lang.String getContition() {
      java.lang.Object ref = contition_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        contition_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string contition = 1;</code>
     * @return The bytes for contition.
     */
    public com.google.protobuf.ByteString
        getContitionBytes() {
      java.lang.Object ref = contition_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        contition_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string contition = 1;</code>
     * @param value The contition to set.
     * @return This builder for chaining.
     */
    public Builder setContition(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      contition_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>string contition = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearContition() {
      contition_ = getDefaultInstance().getContition();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <code>string contition = 1;</code>
     * @param value The bytes for contition to set.
     * @return This builder for chaining.
     */
    public Builder setContitionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      contition_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private int actionType_ ;
    /**
     * <code>int32 actionType = 2;</code>
     * @return The actionType.
     */
    @java.lang.Override
    public int getActionType() {
      return actionType_;
    }
    /**
     * <code>int32 actionType = 2;</code>
     * @param value The actionType to set.
     * @return This builder for chaining.
     */
    public Builder setActionType(int value) {
      
      actionType_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>int32 actionType = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearActionType() {
      bitField0_ = (bitField0_ & ~0x00000002);
      actionType_ = 0;
      onChanged();
      return this;
    }

    private int subType_ ;
    /**
     * <code>int32 subType = 3;</code>
     * @return The subType.
     */
    @java.lang.Override
    public int getSubType() {
      return subType_;
    }
    /**
     * <code>int32 subType = 3;</code>
     * @param value The subType to set.
     * @return This builder for chaining.
     */
    public Builder setSubType(int value) {
      
      subType_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>int32 subType = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearSubType() {
      bitField0_ = (bitField0_ & ~0x00000004);
      subType_ = 0;
      onChanged();
      return this;
    }

    private int actionNumber_ ;
    /**
     * <code>int32 actionNumber = 4;</code>
     * @return The actionNumber.
     */
    @java.lang.Override
    public int getActionNumber() {
      return actionNumber_;
    }
    /**
     * <code>int32 actionNumber = 4;</code>
     * @param value The actionNumber to set.
     * @return This builder for chaining.
     */
    public Builder setActionNumber(int value) {
      
      actionNumber_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>int32 actionNumber = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearActionNumber() {
      bitField0_ = (bitField0_ & ~0x00000008);
      actionNumber_ = 0;
      onChanged();
      return this;
    }

    private int actionIndex_ ;
    /**
     * <code>int32 actionIndex = 5;</code>
     * @return The actionIndex.
     */
    @java.lang.Override
    public int getActionIndex() {
      return actionIndex_;
    }
    /**
     * <code>int32 actionIndex = 5;</code>
     * @param value The actionIndex to set.
     * @return This builder for chaining.
     */
    public Builder setActionIndex(int value) {
      
      actionIndex_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>int32 actionIndex = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearActionIndex() {
      bitField0_ = (bitField0_ & ~0x00000010);
      actionIndex_ = 0;
      onChanged();
      return this;
    }

    private int talker_ = 0;
    /**
     * <code>.UgqDialogueTalker talker = 6;</code>
     * @return The enum numeric value on the wire for talker.
     */
    @java.lang.Override public int getTalkerValue() {
      return talker_;
    }
    /**
     * <code>.UgqDialogueTalker talker = 6;</code>
     * @param value The enum numeric value on the wire for talker to set.
     * @return This builder for chaining.
     */
    public Builder setTalkerValue(int value) {
      talker_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>.UgqDialogueTalker talker = 6;</code>
     * @return The talker.
     */
    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker getTalker() {
      com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker result = com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker.forNumber(talker_);
      return result == null ? com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker.UNRECOGNIZED : result;
    }
    /**
     * <code>.UgqDialogueTalker talker = 6;</code>
     * @param value The talker to set.
     * @return This builder for chaining.
     */
    public Builder setTalker(com.caliverse.admin.domain.RabbitMq.message.UgqDialogueTalker value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000020;
      talker_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.UgqDialogueTalker talker = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearTalker() {
      bitField0_ = (bitField0_ & ~0x00000020);
      talker_ = 0;
      onChanged();
      return this;
    }

    private com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient talk_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient, com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.Builder, com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClientOrBuilder> talkBuilder_;
    /**
     * <code>.UgqGameTextDataForClient talk = 7;</code>
     * @return Whether the talk field is set.
     */
    public boolean hasTalk() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * <code>.UgqGameTextDataForClient talk = 7;</code>
     * @return The talk.
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient getTalk() {
      if (talkBuilder_ == null) {
        return talk_ == null ? com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.getDefaultInstance() : talk_;
      } else {
        return talkBuilder_.getMessage();
      }
    }
    /**
     * <code>.UgqGameTextDataForClient talk = 7;</code>
     */
    public Builder setTalk(com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient value) {
      if (talkBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        talk_ = value;
      } else {
        talkBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>.UgqGameTextDataForClient talk = 7;</code>
     */
    public Builder setTalk(
        com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.Builder builderForValue) {
      if (talkBuilder_ == null) {
        talk_ = builderForValue.build();
      } else {
        talkBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>.UgqGameTextDataForClient talk = 7;</code>
     */
    public Builder mergeTalk(com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient value) {
      if (talkBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0) &&
          talk_ != null &&
          talk_ != com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.getDefaultInstance()) {
          getTalkBuilder().mergeFrom(value);
        } else {
          talk_ = value;
        }
      } else {
        talkBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>.UgqGameTextDataForClient talk = 7;</code>
     */
    public Builder clearTalk() {
      bitField0_ = (bitField0_ & ~0x00000040);
      talk_ = null;
      if (talkBuilder_ != null) {
        talkBuilder_.dispose();
        talkBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.UgqGameTextDataForClient talk = 7;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.Builder getTalkBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getTalkFieldBuilder().getBuilder();
    }
    /**
     * <code>.UgqGameTextDataForClient talk = 7;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClientOrBuilder getTalkOrBuilder() {
      if (talkBuilder_ != null) {
        return talkBuilder_.getMessageOrBuilder();
      } else {
        return talk_ == null ?
            com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.getDefaultInstance() : talk_;
      }
    }
    /**
     * <code>.UgqGameTextDataForClient talk = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient, com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.Builder, com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClientOrBuilder> 
        getTalkFieldBuilder() {
      if (talkBuilder_ == null) {
        talkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient, com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClient.Builder, com.caliverse.admin.domain.RabbitMq.message.UgqGameTextDataForClientOrBuilder>(
                getTalk(),
                getParentForChildren(),
                isClean());
        talk_ = null;
      }
      return talkBuilder_;
    }

    private int isDialogue_ ;
    /**
     * <code>int32 isDialogue = 8;</code>
     * @return The isDialogue.
     */
    @java.lang.Override
    public int getIsDialogue() {
      return isDialogue_;
    }
    /**
     * <code>int32 isDialogue = 8;</code>
     * @param value The isDialogue to set.
     * @return This builder for chaining.
     */
    public Builder setIsDialogue(int value) {
      
      isDialogue_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     * <code>int32 isDialogue = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsDialogue() {
      bitField0_ = (bitField0_ & ~0x00000080);
      isDialogue_ = 0;
      onChanged();
      return this;
    }

    private int npcAction_ ;
    /**
     * <code>int32 NpcAction = 9;</code>
     * @return The npcAction.
     */
    @java.lang.Override
    public int getNpcAction() {
      return npcAction_;
    }
    /**
     * <code>int32 NpcAction = 9;</code>
     * @param value The npcAction to set.
     * @return This builder for chaining.
     */
    public Builder setNpcAction(int value) {
      
      npcAction_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     * <code>int32 NpcAction = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearNpcAction() {
      bitField0_ = (bitField0_ & ~0x00000100);
      npcAction_ = 0;
      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:UgqDialogSequenceAction)
  }

  // @@protoc_insertion_point(class_scope:UgqDialogSequenceAction)
  private static final com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction();
  }

  public static com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<UgqDialogSequenceAction>
      PARSER = new com.google.protobuf.AbstractParser<UgqDialogSequenceAction>() {
    @java.lang.Override
    public UgqDialogSequenceAction parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.UgqDialogSequenceAction getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

