public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case ROLE_NAME:
      if (value == null) {
        unsetRoleName();
      } else {
        setRoleName((java.lang.String)value);
      }
      break;

    case PRINCIPAL_NAME:
      if (value == null) {
        unsetPrincipalName();
      } else {
        setPrincipalName((java.lang.String)value);
      }
      break;

    case PRINCIPAL_TYPE:
      if (value == null) {
        unsetPrincipalType();
      } else {
        setPrincipalType((PrincipalType)value);
      }
      break;

    case GRANT_OPTION:
      if (value == null) {
        unsetGrantOption();
      } else {
        setGrantOption((java.lang.Boolean)value);
      }
      break;

    case GRANT_TIME:
      if (value == null) {
        unsetGrantTime();
      } else {
        setGrantTime((java.lang.Integer)value);
      }
      break;

    case GRANTOR_NAME:
      if (value == null) {
        unsetGrantorName();
      } else {
        setGrantorName((java.lang.String)value);
      }
      break;

    case GRANTOR_PRINCIPAL_TYPE:
      if (value == null) {
        unsetGrantorPrincipalType();
      } else {
        setGrantorPrincipalType((PrincipalType)value);
      }
      break;

    }
  }
Returns true if field grantorPrincipalType 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