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

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

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

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

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

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

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

  public static final int TEAMS_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo> teams_;
  /**
   * <code>repeated .MatchTeamInfo Teams = 2;</code>
   */
  @java.lang.Override
  public java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo> getTeamsList() {
    return teams_;
  }
  /**
   * <code>repeated .MatchTeamInfo Teams = 2;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder> 
      getTeamsOrBuilderList() {
    return teams_;
  }
  /**
   * <code>repeated .MatchTeamInfo Teams = 2;</code>
   */
  @java.lang.Override
  public int getTeamsCount() {
    return teams_.size();
  }
  /**
   * <code>repeated .MatchTeamInfo Teams = 2;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo getTeams(int index) {
    return teams_.get(index);
  }
  /**
   * <code>repeated .MatchTeamInfo Teams = 2;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder getTeamsOrBuilder(
      int index) {
    return teams_.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(roomId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, roomId_);
    }
    for (int i = 0; i < teams_.size(); i++) {
      output.writeMessage(2, teams_.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(roomId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, roomId_);
    }
    for (int i = 0; i < teams_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, teams_.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.MatchRoomInfo)) {
      return super.equals(obj);
    }
    com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo other = (com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo) obj;

    if (!getRoomId()
        .equals(other.getRoomId())) return false;
    if (!getTeamsList()
        .equals(other.getTeamsList())) 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) + ROOMID_FIELD_NUMBER;
    hash = (53 * hash) + getRoomId().hashCode();
    if (getTeamsCount() > 0) {
      hash = (37 * hash) + TEAMS_FIELD_NUMBER;
      hash = (53 * hash) + getTeamsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      roomId_ = "";
      if (teamsBuilder_ == null) {
        teams_ = java.util.Collections.emptyList();
      } else {
        teams_ = null;
        teamsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }

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

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

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

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

    private void buildPartialRepeatedFields(com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo result) {
      if (teamsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          teams_ = java.util.Collections.unmodifiableList(teams_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.teams_ = teams_;
      } else {
        result.teams_ = teamsBuilder_.build();
      }
    }

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

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

    public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo other) {
      if (other == com.caliverse.admin.domain.RabbitMq.message.MatchRoomInfo.getDefaultInstance()) return this;
      if (!other.getRoomId().isEmpty()) {
        roomId_ = other.roomId_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (teamsBuilder_ == null) {
        if (!other.teams_.isEmpty()) {
          if (teams_.isEmpty()) {
            teams_ = other.teams_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureTeamsIsMutable();
            teams_.addAll(other.teams_);
          }
          onChanged();
        }
      } else {
        if (!other.teams_.isEmpty()) {
          if (teamsBuilder_.isEmpty()) {
            teamsBuilder_.dispose();
            teamsBuilder_ = null;
            teams_ = other.teams_;
            bitField0_ = (bitField0_ & ~0x00000002);
            teamsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getTeamsFieldBuilder() : null;
          } else {
            teamsBuilder_.addAllMessages(other.teams_);
          }
        }
      }
      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: {
              roomId_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo m =
                  input.readMessage(
                      com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.parser(),
                      extensionRegistry);
              if (teamsBuilder_ == null) {
                ensureTeamsIsMutable();
                teams_.add(m);
              } else {
                teamsBuilder_.addMessage(m);
              }
              break;
            } // case 18
            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 roomId_ = "";
    /**
     * <code>string RoomId = 1;</code>
     * @return The roomId.
     */
    public java.lang.String getRoomId() {
      java.lang.Object ref = roomId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        roomId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string RoomId = 1;</code>
     * @return The bytes for roomId.
     */
    public com.google.protobuf.ByteString
        getRoomIdBytes() {
      java.lang.Object ref = roomId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        roomId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string RoomId = 1;</code>
     * @param value The roomId to set.
     * @return This builder for chaining.
     */
    public Builder setRoomId(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      roomId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>string RoomId = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearRoomId() {
      roomId_ = getDefaultInstance().getRoomId();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <code>string RoomId = 1;</code>
     * @param value The bytes for roomId to set.
     * @return This builder for chaining.
     */
    public Builder setRoomIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      roomId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder> teamsBuilder_;

    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo> getTeamsList() {
      if (teamsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(teams_);
      } else {
        return teamsBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public int getTeamsCount() {
      if (teamsBuilder_ == null) {
        return teams_.size();
      } else {
        return teamsBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo getTeams(int index) {
      if (teamsBuilder_ == null) {
        return teams_.get(index);
      } else {
        return teamsBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public Builder setTeams(
        int index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo value) {
      if (teamsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTeamsIsMutable();
        teams_.set(index, value);
        onChanged();
      } else {
        teamsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public Builder setTeams(
        int index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder builderForValue) {
      if (teamsBuilder_ == null) {
        ensureTeamsIsMutable();
        teams_.set(index, builderForValue.build());
        onChanged();
      } else {
        teamsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public Builder addTeams(com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo value) {
      if (teamsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTeamsIsMutable();
        teams_.add(value);
        onChanged();
      } else {
        teamsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public Builder addTeams(
        int index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo value) {
      if (teamsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTeamsIsMutable();
        teams_.add(index, value);
        onChanged();
      } else {
        teamsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public Builder addTeams(
        com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder builderForValue) {
      if (teamsBuilder_ == null) {
        ensureTeamsIsMutable();
        teams_.add(builderForValue.build());
        onChanged();
      } else {
        teamsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public Builder addTeams(
        int index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder builderForValue) {
      if (teamsBuilder_ == null) {
        ensureTeamsIsMutable();
        teams_.add(index, builderForValue.build());
        onChanged();
      } else {
        teamsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public Builder addAllTeams(
        java.lang.Iterable<? extends com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo> values) {
      if (teamsBuilder_ == null) {
        ensureTeamsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, teams_);
        onChanged();
      } else {
        teamsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public Builder clearTeams() {
      if (teamsBuilder_ == null) {
        teams_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        teamsBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public Builder removeTeams(int index) {
      if (teamsBuilder_ == null) {
        ensureTeamsIsMutable();
        teams_.remove(index);
        onChanged();
      } else {
        teamsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder getTeamsBuilder(
        int index) {
      return getTeamsFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder getTeamsOrBuilder(
        int index) {
      if (teamsBuilder_ == null) {
        return teams_.get(index);  } else {
        return teamsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public java.util.List<? extends com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder> 
         getTeamsOrBuilderList() {
      if (teamsBuilder_ != null) {
        return teamsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(teams_);
      }
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder addTeamsBuilder() {
      return getTeamsFieldBuilder().addBuilder(
          com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder addTeamsBuilder(
        int index) {
      return getTeamsFieldBuilder().addBuilder(
          index, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .MatchTeamInfo Teams = 2;</code>
     */
    public java.util.List<com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder> 
         getTeamsBuilderList() {
      return getTeamsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder> 
        getTeamsFieldBuilder() {
      if (teamsBuilder_ == null) {
        teamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfo.Builder, com.caliverse.admin.domain.RabbitMq.message.MatchTeamInfoOrBuilder>(
                teams_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        teams_ = null;
      }
      return teamsBuilder_;
    }
    @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:MatchRoomInfo)
  }

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

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

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

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

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

}

