Name | Type | Description | Notes |
---|---|---|---|
Calories | float32 | ||
Carbohydrates | float32 | ||
Fat | float32 | ||
Protein | float32 |
func NewGenerateMealPlan200ResponseNutrients(calories float32, carbohydrates float32, fat float32, protein float32, ) *GenerateMealPlan200ResponseNutrients
NewGenerateMealPlan200ResponseNutrients instantiates a new GenerateMealPlan200ResponseNutrients object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGenerateMealPlan200ResponseNutrientsWithDefaults() *GenerateMealPlan200ResponseNutrients
NewGenerateMealPlan200ResponseNutrientsWithDefaults instantiates a new GenerateMealPlan200ResponseNutrients object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *GenerateMealPlan200ResponseNutrients) GetCalories() float32
GetCalories returns the Calories field if non-nil, zero value otherwise.
func (o *GenerateMealPlan200ResponseNutrients) GetCaloriesOk() (*float32, bool)
GetCaloriesOk returns a tuple with the Calories field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GenerateMealPlan200ResponseNutrients) SetCalories(v float32)
SetCalories sets Calories field to given value.
func (o *GenerateMealPlan200ResponseNutrients) GetCarbohydrates() float32
GetCarbohydrates returns the Carbohydrates field if non-nil, zero value otherwise.
func (o *GenerateMealPlan200ResponseNutrients) GetCarbohydratesOk() (*float32, bool)
GetCarbohydratesOk returns a tuple with the Carbohydrates field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GenerateMealPlan200ResponseNutrients) SetCarbohydrates(v float32)
SetCarbohydrates sets Carbohydrates field to given value.
func (o *GenerateMealPlan200ResponseNutrients) GetFat() float32
GetFat returns the Fat field if non-nil, zero value otherwise.
func (o *GenerateMealPlan200ResponseNutrients) GetFatOk() (*float32, bool)
GetFatOk returns a tuple with the Fat field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GenerateMealPlan200ResponseNutrients) SetFat(v float32)
SetFat sets Fat field to given value.
func (o *GenerateMealPlan200ResponseNutrients) GetProtein() float32
GetProtein returns the Protein field if non-nil, zero value otherwise.
func (o *GenerateMealPlan200ResponseNutrients) GetProteinOk() (*float32, bool)
GetProteinOk returns a tuple with the Protein field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GenerateMealPlan200ResponseNutrients) SetProtein(v float32)
SetProtein sets Protein field to given value.