code: func (c *PermanodeConstraint) hasValueConstraint() bool {
  	// If a field has been added or removed, update this after adding the new field to the return statement if necessary.
  	const expectedFields = 15
  	if numPermanodeFields != expectedFields {
  		panic(fmt.Sprintf("PermanodeConstraint field count changed (now %v rather than %v)", numPermanodeFields, expectedFields))
  	}
  	return c.Value != "" ||
  		c.ValueMatches != nil ||
  		c.ValueMatchesInt != nil ||
  		c.ValueMatchesFloat != nil ||
  		c.ValueInSet != nil
  }
docs: // hasValueConstraint returns true if one or more constraints that check an attribute's value are set.