toString method

String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

String toString() {
  StringBuffer ret = new StringBuffer("UpdateVertexRequest(");

  ret.write("space_id:");
  ret.write(this.space_id);

  ret.write(", ");
  ret.write("part_id:");
  ret.write(this.part_id);

  ret.write(", ");
  ret.write("vertex_id:");
  if (this.vertex_id == null) {
    ret.write("null");
  } else {
    ret.write(this.vertex_id);
  }

  ret.write(", ");
  ret.write("tag_id:");
  ret.write(this.tag_id);

  ret.write(", ");
  ret.write("updated_props:");
  if (this.updated_props == null) {
    ret.write("null");
  } else {
    ret.write(this.updated_props);
  }

  if (isSetInsertable()) {
    ret.write(", ");
    ret.write("insertable:");
    ret.write(this.insertable);
  }

  if (isSetReturn_props()) {
    ret.write(", ");
    ret.write("return_props:");
    if (this.return_props == null) {
      ret.write("null");
    } else {
      ret.write(this.return_props);
    }
  }

  if (isSetCondition()) {
    ret.write(", ");
    ret.write("condition:");
    if (this.condition == null) {
      ret.write("null");
    } else {
      ret.write("BINARY");
    }
  }

  if (isSetCommon()) {
    ret.write(", ");
    ret.write("common:");
    if (this.common == null) {
      ret.write("null");
    } else {
      ret.write(this.common);
    }
  }

  ret.write(")");

  return ret.toString();
}