Skip to content

Latest commit

 

History

History
114 lines (61 loc) · 3.5 KB

GenerateMealPlan200ResponseNutrients.md

File metadata and controls

114 lines (61 loc) · 3.5 KB

GenerateMealPlan200ResponseNutrients

Properties

Name Type Description Notes
Calories float32
Carbohydrates float32
Fat float32
Protein float32

Methods

NewGenerateMealPlan200ResponseNutrients

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

NewGenerateMealPlan200ResponseNutrientsWithDefaults

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

GetCalories

func (o *GenerateMealPlan200ResponseNutrients) GetCalories() float32

GetCalories returns the Calories field if non-nil, zero value otherwise.

GetCaloriesOk

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.

SetCalories

func (o *GenerateMealPlan200ResponseNutrients) SetCalories(v float32)

SetCalories sets Calories field to given value.

GetCarbohydrates

func (o *GenerateMealPlan200ResponseNutrients) GetCarbohydrates() float32

GetCarbohydrates returns the Carbohydrates field if non-nil, zero value otherwise.

GetCarbohydratesOk

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.

SetCarbohydrates

func (o *GenerateMealPlan200ResponseNutrients) SetCarbohydrates(v float32)

SetCarbohydrates sets Carbohydrates field to given value.

GetFat

func (o *GenerateMealPlan200ResponseNutrients) GetFat() float32

GetFat returns the Fat field if non-nil, zero value otherwise.

GetFatOk

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.

SetFat

func (o *GenerateMealPlan200ResponseNutrients) SetFat(v float32)

SetFat sets Fat field to given value.

GetProtein

func (o *GenerateMealPlan200ResponseNutrients) GetProtein() float32

GetProtein returns the Protein field if non-nil, zero value otherwise.

GetProteinOk

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.

SetProtein

func (o *GenerateMealPlan200ResponseNutrients) SetProtein(v float32)

SetProtein sets Protein field to given value.

[Back to Model list] [Back to API list] [Back to README]