public StringBuilder toString()

in messages/src/main/java/com/epam/deltix/timebase/messages/schema/StreamMessage.java [459:516]


  public StringBuilder toString(StringBuilder str) {
    str.append("{ \"$type\":  \"StreamMessage\"");
    if (hasKey()) {
      str.append(", \"key\": \"").append(getKey()).append("\"");
    }
    if (hasName()) {
      str.append(", \"name\": \"").append(getName()).append("\"");
    }
    if (hasDescription()) {
      str.append(", \"description\": \"").append(getDescription()).append("\"");
    }
    if (hasTopTypes()) {
      str.append(", \"topTypes\": [");
      if (getTopTypes().size() > 0) {
        if (getTopTypes().get(0) == null) {
          str.append("null");
        } else {
          getTopTypes().get(0).toString(str);
        }
      }
      for (int i = 1; i < getTopTypes().size(); ++i) {
        str.append(", ");
        if (getTopTypes().get(i) == null) {
          str.append("null");
        } else {
          getTopTypes().get(i).toString(str);
        }
      }
      str.append("]");
    }
    if (hasAllTypes()) {
      str.append(", \"allTypes\": [");
      if (getAllTypes().size() > 0) {
        if (getAllTypes().get(0) == null) {
          str.append("null");
        } else {
          getAllTypes().get(0).toString(str);
        }
      }
      for (int i = 1; i < getAllTypes().size(); ++i) {
        str.append(", ");
        if (getAllTypes().get(i) == null) {
          str.append("null");
        } else {
          getAllTypes().get(i).toString(str);
        }
      }
      str.append("]");
    }
    if (hasTimeStampMs()) {
      str.append(", \"timeStampMs\": \"").append(getTimeStampMs()).append("\"");
    }
    if (hasSymbol()) {
      str.append(", \"symbol\": \"").append(getSymbol()).append("\"");
    }
    str.append("}");
    return str;
  }