func Int(value *structpb.Value) int {
	nv, ok := value.Kind.(*structpb.Value_NumberValue)
	if !ok {
		return 0
	}
	return int(nv.NumberValue)
}
// Int returns value as an int. If value is not
// a NumberValue, returns 0
Int returns value as an int. If value is not
a NumberValue, returns 0
// Int returns value as an int . If value is not // a NumberValue returns 0
func Int(value *structpb.Value) int {
	nv, ok := value.Kind.(*structpb.Value_NumberValue)
	if !ok {
		return 0
	}
	return int(nv.NumberValue)
}
func Int ( value * structpb . Value ) int { nv , ok := value . Kind . ( * structpb . Value_NumberValue ) if ! ok { return 0 } return int ( nv . NumberValue ) }
Int returns value as an int.
Int returns value as an int .