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

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

/**
 * Protobuf type {@code UgqGameQuestDialogue}
 */
public final class UgqGameQuestDialogue extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:UgqGameQuestDialogue)
    UgqGameQuestDialogueOrBuilder {
private static final long serialVersionUID = 0L;
  // Use UgqGameQuestDialogue.newBuilder() to construct.
  private UgqGameQuestDialogue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private UgqGameQuestDialogue() {
    dialogueId_ = "";
    sequences_ = java.util.Collections.emptyList();
    returns_ = java.util.Collections.emptyList();
  }

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

  @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_UgqGameQuestDialogue_descriptor;
  }

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

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

  public static final int SEQUENCES_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences> sequences_;
  /**
   * <code>repeated .UgqDialogueSequences sequences = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences> getSequencesList() {
    return sequences_;
  }
  /**
   * <code>repeated .UgqDialogueSequences sequences = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequencesOrBuilder> 
      getSequencesOrBuilderList() {
    return sequences_;
  }
  /**
   * <code>repeated .UgqDialogueSequences sequences = 2;</code>
   */
  @java.lang.Override
  public int getSequencesCount() {
    return sequences_.size();
  }
  /**
   * <code>repeated .UgqDialogueSequences sequences = 2;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences getSequences(int index) {
    return sequences_.get(index);
  }
  /**
   * <code>repeated .UgqDialogueSequences sequences = 2;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequencesOrBuilder getSequencesOrBuilder(
      int index) {
    return sequences_.get(index);
  }

  public static final int RETURNS_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns> returns_;
  /**
   * <code>repeated .UgqDialogueReturns returns = 3;</code>
   */
  @java.lang.Override
  public java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns> getReturnsList() {
    return returns_;
  }
  /**
   * <code>repeated .UgqDialogueReturns returns = 3;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturnsOrBuilder> 
      getReturnsOrBuilderList() {
    return returns_;
  }
  /**
   * <code>repeated .UgqDialogueReturns returns = 3;</code>
   */
  @java.lang.Override
  public int getReturnsCount() {
    return returns_.size();
  }
  /**
   * <code>repeated .UgqDialogueReturns returns = 3;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns getReturns(int index) {
    return returns_.get(index);
  }
  /**
   * <code>repeated .UgqDialogueReturns returns = 3;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturnsOrBuilder getReturnsOrBuilder(
      int index) {
    return returns_.get(index);
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dialogueId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dialogueId_);
    }
    for (int i = 0; i < sequences_.size(); i++) {
      output.writeMessage(2, sequences_.get(i));
    }
    for (int i = 0; i < returns_.size(); i++) {
      output.writeMessage(3, returns_.get(i));
    }
    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(dialogueId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dialogueId_);
    }
    for (int i = 0; i < sequences_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, sequences_.get(i));
    }
    for (int i = 0; i < returns_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, returns_.get(i));
    }
    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.UgqGameQuestDialogue)) {
      return super.equals(obj);
    }
    com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue other = (com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue) obj;

    if (!getDialogueId()
        .equals(other.getDialogueId())) return false;
    if (!getSequencesList()
        .equals(other.getSequencesList())) return false;
    if (!getReturnsList()
        .equals(other.getReturnsList())) 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) + DIALOGUEID_FIELD_NUMBER;
    hash = (53 * hash) + getDialogueId().hashCode();
    if (getSequencesCount() > 0) {
      hash = (37 * hash) + SEQUENCES_FIELD_NUMBER;
      hash = (53 * hash) + getSequencesList().hashCode();
    }
    if (getReturnsCount() > 0) {
      hash = (37 * hash) + RETURNS_FIELD_NUMBER;
      hash = (53 * hash) + getReturnsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue 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.UgqGameQuestDialogue parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue 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.UgqGameQuestDialogue parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue 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.UgqGameQuestDialogue 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.UgqGameQuestDialogue 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.UgqGameQuestDialogue 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.UgqGameQuestDialogue 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.UgqGameQuestDialogue 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.UgqGameQuestDialogue 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.UgqGameQuestDialogue 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 UgqGameQuestDialogue}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:UgqGameQuestDialogue)
      com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogueOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.caliverse.admin.domain.RabbitMq.message.GameDefine.internal_static_UgqGameQuestDialogue_descriptor;
    }

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

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

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      dialogueId_ = "";
      if (sequencesBuilder_ == null) {
        sequences_ = java.util.Collections.emptyList();
      } else {
        sequences_ = null;
        sequencesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      if (returnsBuilder_ == null) {
        returns_ = java.util.Collections.emptyList();
      } else {
        returns_ = null;
        returnsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      return this;
    }

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

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

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

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

    private void buildPartialRepeatedFields(com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue result) {
      if (sequencesBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          sequences_ = java.util.Collections.unmodifiableList(sequences_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.sequences_ = sequences_;
      } else {
        result.sequences_ = sequencesBuilder_.build();
      }
      if (returnsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          returns_ = java.util.Collections.unmodifiableList(returns_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.returns_ = returns_;
      } else {
        result.returns_ = returnsBuilder_.build();
      }
    }

    private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.dialogueId_ = dialogueId_;
      }
    }

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

    public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue other) {
      if (other == com.caliverse.admin.domain.RabbitMq.message.UgqGameQuestDialogue.getDefaultInstance()) return this;
      if (!other.getDialogueId().isEmpty()) {
        dialogueId_ = other.dialogueId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (sequencesBuilder_ == null) {
        if (!other.sequences_.isEmpty()) {
          if (sequences_.isEmpty()) {
            sequences_ = other.sequences_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureSequencesIsMutable();
            sequences_.addAll(other.sequences_);
          }
          onChanged();
        }
      } else {
        if (!other.sequences_.isEmpty()) {
          if (sequencesBuilder_.isEmpty()) {
            sequencesBuilder_.dispose();
            sequencesBuilder_ = null;
            sequences_ = other.sequences_;
            bitField0_ = (bitField0_ & ~0x00000002);
            sequencesBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getSequencesFieldBuilder() : null;
          } else {
            sequencesBuilder_.addAllMessages(other.sequences_);
          }
        }
      }
      if (returnsBuilder_ == null) {
        if (!other.returns_.isEmpty()) {
          if (returns_.isEmpty()) {
            returns_ = other.returns_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureReturnsIsMutable();
            returns_.addAll(other.returns_);
          }
          onChanged();
        }
      } else {
        if (!other.returns_.isEmpty()) {
          if (returnsBuilder_.isEmpty()) {
            returnsBuilder_.dispose();
            returnsBuilder_ = null;
            returns_ = other.returns_;
            bitField0_ = (bitField0_ & ~0x00000004);
            returnsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getReturnsFieldBuilder() : null;
          } else {
            returnsBuilder_.addAllMessages(other.returns_);
          }
        }
      }
      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: {
              dialogueId_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences m =
                  input.readMessage(
                      com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.parser(),
                      extensionRegistry);
              if (sequencesBuilder_ == null) {
                ensureSequencesIsMutable();
                sequences_.add(m);
              } else {
                sequencesBuilder_.addMessage(m);
              }
              break;
            } // case 18
            case 26: {
              com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns m =
                  input.readMessage(
                      com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.parser(),
                      extensionRegistry);
              if (returnsBuilder_ == null) {
                ensureReturnsIsMutable();
                returns_.add(m);
              } else {
                returnsBuilder_.addMessage(m);
              }
              break;
            } // case 26
            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 dialogueId_ = "";
    /**
     * <code>string dialogueId = 1;</code>
     * @return The dialogueId.
     */
    public java.lang.String getDialogueId() {
      java.lang.Object ref = dialogueId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dialogueId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string dialogueId = 1;</code>
     * @return The bytes for dialogueId.
     */
    public com.google.protobuf.ByteString
        getDialogueIdBytes() {
      java.lang.Object ref = dialogueId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dialogueId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string dialogueId = 1;</code>
     * @param value The dialogueId to set.
     * @return This builder for chaining.
     */
    public Builder setDialogueId(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      dialogueId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>string dialogueId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearDialogueId() {
      dialogueId_ = getDefaultInstance().getDialogueId();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <code>string dialogueId = 1;</code>
     * @param value The bytes for dialogueId to set.
     * @return This builder for chaining.
     */
    public Builder setDialogueIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      dialogueId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences> sequences_ =
      java.util.Collections.emptyList();
    private void ensureSequencesIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        sequences_ = new java.util.ArrayList<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences>(sequences_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequencesOrBuilder> sequencesBuilder_;

    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences> getSequencesList() {
      if (sequencesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(sequences_);
      } else {
        return sequencesBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public int getSequencesCount() {
      if (sequencesBuilder_ == null) {
        return sequences_.size();
      } else {
        return sequencesBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences getSequences(int index) {
      if (sequencesBuilder_ == null) {
        return sequences_.get(index);
      } else {
        return sequencesBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public Builder setSequences(
        int index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences value) {
      if (sequencesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSequencesIsMutable();
        sequences_.set(index, value);
        onChanged();
      } else {
        sequencesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public Builder setSequences(
        int index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder builderForValue) {
      if (sequencesBuilder_ == null) {
        ensureSequencesIsMutable();
        sequences_.set(index, builderForValue.build());
        onChanged();
      } else {
        sequencesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public Builder addSequences(com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences value) {
      if (sequencesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSequencesIsMutable();
        sequences_.add(value);
        onChanged();
      } else {
        sequencesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public Builder addSequences(
        int index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences value) {
      if (sequencesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSequencesIsMutable();
        sequences_.add(index, value);
        onChanged();
      } else {
        sequencesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public Builder addSequences(
        com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder builderForValue) {
      if (sequencesBuilder_ == null) {
        ensureSequencesIsMutable();
        sequences_.add(builderForValue.build());
        onChanged();
      } else {
        sequencesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public Builder addSequences(
        int index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder builderForValue) {
      if (sequencesBuilder_ == null) {
        ensureSequencesIsMutable();
        sequences_.add(index, builderForValue.build());
        onChanged();
      } else {
        sequencesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public Builder addAllSequences(
        java.lang.Iterable<? extends com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences> values) {
      if (sequencesBuilder_ == null) {
        ensureSequencesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, sequences_);
        onChanged();
      } else {
        sequencesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public Builder clearSequences() {
      if (sequencesBuilder_ == null) {
        sequences_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        sequencesBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public Builder removeSequences(int index) {
      if (sequencesBuilder_ == null) {
        ensureSequencesIsMutable();
        sequences_.remove(index);
        onChanged();
      } else {
        sequencesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder getSequencesBuilder(
        int index) {
      return getSequencesFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequencesOrBuilder getSequencesOrBuilder(
        int index) {
      if (sequencesBuilder_ == null) {
        return sequences_.get(index);  } else {
        return sequencesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequencesOrBuilder> 
         getSequencesOrBuilderList() {
      if (sequencesBuilder_ != null) {
        return sequencesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(sequences_);
      }
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder addSequencesBuilder() {
      return getSequencesFieldBuilder().addBuilder(
          com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.getDefaultInstance());
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder addSequencesBuilder(
        int index) {
      return getSequencesFieldBuilder().addBuilder(
          index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.getDefaultInstance());
    }
    /**
     * <code>repeated .UgqDialogueSequences sequences = 2;</code>
     */
    public java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder> 
         getSequencesBuilderList() {
      return getSequencesFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequencesOrBuilder> 
        getSequencesFieldBuilder() {
      if (sequencesBuilder_ == null) {
        sequencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequences.Builder, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueSequencesOrBuilder>(
                sequences_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        sequences_ = null;
      }
      return sequencesBuilder_;
    }

    private java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns> returns_ =
      java.util.Collections.emptyList();
    private void ensureReturnsIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        returns_ = new java.util.ArrayList<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns>(returns_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturnsOrBuilder> returnsBuilder_;

    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns> getReturnsList() {
      if (returnsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(returns_);
      } else {
        return returnsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public int getReturnsCount() {
      if (returnsBuilder_ == null) {
        return returns_.size();
      } else {
        return returnsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns getReturns(int index) {
      if (returnsBuilder_ == null) {
        return returns_.get(index);
      } else {
        return returnsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public Builder setReturns(
        int index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns value) {
      if (returnsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureReturnsIsMutable();
        returns_.set(index, value);
        onChanged();
      } else {
        returnsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public Builder setReturns(
        int index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder builderForValue) {
      if (returnsBuilder_ == null) {
        ensureReturnsIsMutable();
        returns_.set(index, builderForValue.build());
        onChanged();
      } else {
        returnsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public Builder addReturns(com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns value) {
      if (returnsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureReturnsIsMutable();
        returns_.add(value);
        onChanged();
      } else {
        returnsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public Builder addReturns(
        int index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns value) {
      if (returnsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureReturnsIsMutable();
        returns_.add(index, value);
        onChanged();
      } else {
        returnsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public Builder addReturns(
        com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder builderForValue) {
      if (returnsBuilder_ == null) {
        ensureReturnsIsMutable();
        returns_.add(builderForValue.build());
        onChanged();
      } else {
        returnsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public Builder addReturns(
        int index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder builderForValue) {
      if (returnsBuilder_ == null) {
        ensureReturnsIsMutable();
        returns_.add(index, builderForValue.build());
        onChanged();
      } else {
        returnsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public Builder addAllReturns(
        java.lang.Iterable<? extends com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns> values) {
      if (returnsBuilder_ == null) {
        ensureReturnsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, returns_);
        onChanged();
      } else {
        returnsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public Builder clearReturns() {
      if (returnsBuilder_ == null) {
        returns_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        returnsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public Builder removeReturns(int index) {
      if (returnsBuilder_ == null) {
        ensureReturnsIsMutable();
        returns_.remove(index);
        onChanged();
      } else {
        returnsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder getReturnsBuilder(
        int index) {
      return getReturnsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturnsOrBuilder getReturnsOrBuilder(
        int index) {
      if (returnsBuilder_ == null) {
        return returns_.get(index);  } else {
        return returnsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturnsOrBuilder> 
         getReturnsOrBuilderList() {
      if (returnsBuilder_ != null) {
        return returnsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(returns_);
      }
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder addReturnsBuilder() {
      return getReturnsFieldBuilder().addBuilder(
          com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.getDefaultInstance());
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder addReturnsBuilder(
        int index) {
      return getReturnsFieldBuilder().addBuilder(
          index, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.getDefaultInstance());
    }
    /**
     * <code>repeated .UgqDialogueReturns returns = 3;</code>
     */
    public java.util.List<com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder> 
         getReturnsBuilderList() {
      return getReturnsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturnsOrBuilder> 
        getReturnsFieldBuilder() {
      if (returnsBuilder_ == null) {
        returnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturns.Builder, com.caliverse.admin.domain.RabbitMq.message.UgqDialogueReturnsOrBuilder>(
                returns_,
                ((bitField0_ & 0x00000004) != 0),
                getParentForChildren(),
                isClean());
        returns_ = null;
      }
      return returnsBuilder_;
    }
    @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:UgqGameQuestDialogue)
  }

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

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

  private static final com.google.protobuf.Parser<UgqGameQuestDialogue>
      PARSER = new com.google.protobuf.AbstractParser<UgqGameQuestDialogue>() {
    @java.lang.Override
    public UgqGameQuestDialogue 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<UgqGameQuestDialogue> parser() {
    return PARSER;
  }

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

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

}

