@Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof PipelineDescription == false) return false;
    PipelineDescription other = (PipelineDescription) obj;

    if (other.getPipelineId() == null ^ this.getPipelineId() == null) return false;
    if (other.getPipelineId() != null
        && other.getPipelineId().equals(this.getPipelineId()) == false) return false;
    if (other.getName() == null ^ this.getName() == null) return false;
    if (other.getName() != null && other.getName().equals(this.getName()) == false) return false;
    if (other.getFields() == null ^ this.getFields() == null) return false;
    if (other.getFields() != null && other.getFields().equals(this.getFields()) == false)
      return false;
    if (other.getDescription() == null ^ this.getDescription() == null) return false;
    if (other.getDescription() != null
        && other.getDescription().equals(this.getDescription()) == false) return false;
    return true;
  }
  public PipelineDescription unmarshall(JsonUnmarshallerContext context) throws Exception {
    PipelineDescription pipelineDescription = new PipelineDescription();

    int originalDepth = context.getCurrentDepth();
    String currentParentElement = context.getCurrentParentElement();
    int targetDepth = originalDepth + 1;

    JsonToken token = context.getCurrentToken();
    if (token == null) token = context.nextToken();
    if (token == VALUE_NULL) return null;

    while (true) {
      if (token == null) break;

      if (token == FIELD_NAME || token == START_OBJECT) {
        if (context.testExpression("pipelineId", targetDepth)) {
          context.nextToken();
          pipelineDescription.setPipelineId(
              StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("name", targetDepth)) {
          context.nextToken();
          pipelineDescription.setName(StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("fields", targetDepth)) {
          context.nextToken();
          pipelineDescription.setFields(
              new ListUnmarshaller<Field>(FieldJsonUnmarshaller.getInstance()).unmarshall(context));
        }
        if (context.testExpression("description", targetDepth)) {
          context.nextToken();
          pipelineDescription.setDescription(
              StringJsonUnmarshaller.getInstance().unmarshall(context));
        }
        if (context.testExpression("tags", targetDepth)) {
          context.nextToken();
          pipelineDescription.setTags(
              new ListUnmarshaller<Tag>(TagJsonUnmarshaller.getInstance()).unmarshall(context));
        }
      } else if (token == END_ARRAY || token == END_OBJECT) {
        if (context.getLastParsedParentElement() == null
            || context.getLastParsedParentElement().equals(currentParentElement)) {
          if (context.getCurrentDepth() <= originalDepth) break;
        }
      }

      token = context.nextToken();
    }

    return pipelineDescription;
  }