@Override
  public java.lang.String toString() {
    java.lang.StringBuilder sb = new java.lang.StringBuilder("RolePrincipalGrant(");
    boolean first = true;

    sb.append("roleName:");
    if (this.roleName == null) {
      sb.append("null");
    } else {
      sb.append(this.roleName);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("principalName:");
    if (this.principalName == null) {
      sb.append("null");
    } else {
      sb.append(this.principalName);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("principalType:");
    if (this.principalType == null) {
      sb.append("null");
    } else {
      sb.append(this.principalType);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("grantOption:");
    sb.append(this.grantOption);
    first = false;
    if (!first) sb.append(", ");
    sb.append("grantTime:");
    sb.append(this.grantTime);
    first = false;
    if (!first) sb.append(", ");
    sb.append("grantorName:");
    if (this.grantorName == null) {
      sb.append("null");
    } else {
      sb.append(this.grantorName);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("grantorPrincipalType:");
    if (this.grantorPrincipalType == null) {
      sb.append("null");
    } else {
      sb.append(this.grantorPrincipalType);
    }
    first = false;
    sb.append(")");
    return sb.toString();
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java