content: package com.alibaba.fastjson_perf.rocketmq;
  
  import java.util.HashMap;
  
  public class RemotingCommand {
      private int code;
      private LanguageCode language = LanguageCode.JAVA;
      private int version;
      private int opaque = 123;
      private int flag;
      private String remark;
      private HashMap<String, String> extFields;
  
      public int getCode() {
          return code;
      }
  
      public void setCode(int code) {
          this.code = code;
      }
  
      public LanguageCode getLanguage() {
          return language;
      }
  
      public void setLanguage(LanguageCode language) {
          this.language = language;
      }
  
      public int getVersion() {
          return version;
      }
  
      public void setVersion(int version) {
          this.version = version;
      }
  
      public int getOpaque() {
          return opaque;
      }
  
      public void setOpaque(int opaque) {
          this.opaque = opaque;
      }
  
      public int getFlag() {
          return flag;
      }
  
      public void setFlag(int flag) {
          this.flag = flag;
      }
  
      public String getRemark() {
          return remark;
      }
  
      public void setRemark(String remark) {
          this.remark = remark;
      }
  
      public HashMap<String, String> getExtFields() {
          return extFields;
      }
  
      public void setExtFields(HashMap<String, String> extFields) {
          this.extFields = extFields;
      }
  
      public void addExtField(String key, String value) {
          if (null == extFields) {
              extFields = new HashMap<String, String>();
          }
          extFields.put(key, value);
      }
  }
  