Name | Type | Description | Notes |
---|---|---|---|
Id | Pointer to int64 | The unique identifier of this segment | [optional] |
Name | Pointer to string | The name of this segment | [optional] |
ActivityType | Pointer to string | [optional] | |
Distance | Pointer to float32 | The segment's distance, in meters | [optional] |
AverageGrade | Pointer to float32 | The segment's average grade, in percents | [optional] |
MaximumGrade | Pointer to float32 | The segments's maximum grade, in percents | [optional] |
ElevationHigh | Pointer to float32 | The segments's highest elevation, in meters | [optional] |
ElevationLow | Pointer to float32 | The segments's lowest elevation, in meters | [optional] |
StartLatlng | Pointer to []float32 | A pair of latitude/longitude coordinates, represented as an array of 2 floating point numbers. | [optional] |
EndLatlng | Pointer to []float32 | A pair of latitude/longitude coordinates, represented as an array of 2 floating point numbers. | [optional] |
ClimbCategory | Pointer to int32 | The category of the climb [0, 5]. Higher is harder ie. 5 is Hors catégorie, 0 is uncategorized in climb_category. | [optional] |
City | Pointer to string | The segments's city. | [optional] |
State | Pointer to string | The segments's state or geographical region. | [optional] |
Country | Pointer to string | The segment's country. | [optional] |
Private | Pointer to bool | Whether this segment is private. | [optional] |
AthletePrEffort | Pointer to SummaryPRSegmentEffort | [optional] | |
AthleteSegmentStats | Pointer to SummarySegmentEffort | [optional] | |
CreatedAt | Pointer to time.Time | The time at which the segment was created. | [optional] |
UpdatedAt | Pointer to time.Time | The time at which the segment was last updated. | [optional] |
TotalElevationGain | Pointer to float32 | The segment's total elevation gain. | [optional] |
Map | Pointer to PolylineMap | [optional] | |
EffortCount | Pointer to int32 | The total number of efforts for this segment | [optional] |
AthleteCount | Pointer to int32 | The number of unique athletes who have an effort for this segment | [optional] |
Hazardous | Pointer to bool | Whether this segment is considered hazardous | [optional] |
StarCount | Pointer to int32 | The number of stars for this segment | [optional] |
func NewDetailedSegment() *DetailedSegment
NewDetailedSegment instantiates a new DetailedSegment 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 NewDetailedSegmentWithDefaults() *DetailedSegment
NewDetailedSegmentWithDefaults instantiates a new DetailedSegment 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 *DetailedSegment) GetId() int64
GetId returns the Id field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetIdOk() (*int64, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetId(v int64)
SetId sets Id field to given value.
func (o *DetailedSegment) HasId() bool
HasId returns a boolean if a field has been set.
func (o *DetailedSegment) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetName(v string)
SetName sets Name field to given value.
func (o *DetailedSegment) HasName() bool
HasName returns a boolean if a field has been set.
func (o *DetailedSegment) GetActivityType() string
GetActivityType returns the ActivityType field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetActivityTypeOk() (*string, bool)
GetActivityTypeOk returns a tuple with the ActivityType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetActivityType(v string)
SetActivityType sets ActivityType field to given value.
func (o *DetailedSegment) HasActivityType() bool
HasActivityType returns a boolean if a field has been set.
func (o *DetailedSegment) GetDistance() float32
GetDistance returns the Distance field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetDistanceOk() (*float32, bool)
GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetDistance(v float32)
SetDistance sets Distance field to given value.
func (o *DetailedSegment) HasDistance() bool
HasDistance returns a boolean if a field has been set.
func (o *DetailedSegment) GetAverageGrade() float32
GetAverageGrade returns the AverageGrade field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetAverageGradeOk() (*float32, bool)
GetAverageGradeOk returns a tuple with the AverageGrade field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetAverageGrade(v float32)
SetAverageGrade sets AverageGrade field to given value.
func (o *DetailedSegment) HasAverageGrade() bool
HasAverageGrade returns a boolean if a field has been set.
func (o *DetailedSegment) GetMaximumGrade() float32
GetMaximumGrade returns the MaximumGrade field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetMaximumGradeOk() (*float32, bool)
GetMaximumGradeOk returns a tuple with the MaximumGrade field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetMaximumGrade(v float32)
SetMaximumGrade sets MaximumGrade field to given value.
func (o *DetailedSegment) HasMaximumGrade() bool
HasMaximumGrade returns a boolean if a field has been set.
func (o *DetailedSegment) GetElevationHigh() float32
GetElevationHigh returns the ElevationHigh field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetElevationHighOk() (*float32, bool)
GetElevationHighOk returns a tuple with the ElevationHigh field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetElevationHigh(v float32)
SetElevationHigh sets ElevationHigh field to given value.
func (o *DetailedSegment) HasElevationHigh() bool
HasElevationHigh returns a boolean if a field has been set.
func (o *DetailedSegment) GetElevationLow() float32
GetElevationLow returns the ElevationLow field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetElevationLowOk() (*float32, bool)
GetElevationLowOk returns a tuple with the ElevationLow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetElevationLow(v float32)
SetElevationLow sets ElevationLow field to given value.
func (o *DetailedSegment) HasElevationLow() bool
HasElevationLow returns a boolean if a field has been set.
func (o *DetailedSegment) GetStartLatlng() []float32
GetStartLatlng returns the StartLatlng field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetStartLatlngOk() (*[]float32, bool)
GetStartLatlngOk returns a tuple with the StartLatlng field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetStartLatlng(v []float32)
SetStartLatlng sets StartLatlng field to given value.
func (o *DetailedSegment) HasStartLatlng() bool
HasStartLatlng returns a boolean if a field has been set.
func (o *DetailedSegment) GetEndLatlng() []float32
GetEndLatlng returns the EndLatlng field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetEndLatlngOk() (*[]float32, bool)
GetEndLatlngOk returns a tuple with the EndLatlng field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetEndLatlng(v []float32)
SetEndLatlng sets EndLatlng field to given value.
func (o *DetailedSegment) HasEndLatlng() bool
HasEndLatlng returns a boolean if a field has been set.
func (o *DetailedSegment) GetClimbCategory() int32
GetClimbCategory returns the ClimbCategory field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetClimbCategoryOk() (*int32, bool)
GetClimbCategoryOk returns a tuple with the ClimbCategory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetClimbCategory(v int32)
SetClimbCategory sets ClimbCategory field to given value.
func (o *DetailedSegment) HasClimbCategory() bool
HasClimbCategory returns a boolean if a field has been set.
func (o *DetailedSegment) GetCity() string
GetCity returns the City field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetCityOk() (*string, bool)
GetCityOk returns a tuple with the City field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetCity(v string)
SetCity sets City field to given value.
func (o *DetailedSegment) HasCity() bool
HasCity returns a boolean if a field has been set.
func (o *DetailedSegment) GetState() string
GetState returns the State field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetStateOk() (*string, bool)
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetState(v string)
SetState sets State field to given value.
func (o *DetailedSegment) HasState() bool
HasState returns a boolean if a field has been set.
func (o *DetailedSegment) GetCountry() string
GetCountry returns the Country field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetCountryOk() (*string, bool)
GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetCountry(v string)
SetCountry sets Country field to given value.
func (o *DetailedSegment) HasCountry() bool
HasCountry returns a boolean if a field has been set.
func (o *DetailedSegment) GetPrivate() bool
GetPrivate returns the Private field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetPrivateOk() (*bool, bool)
GetPrivateOk returns a tuple with the Private field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetPrivate(v bool)
SetPrivate sets Private field to given value.
func (o *DetailedSegment) HasPrivate() bool
HasPrivate returns a boolean if a field has been set.
func (o *DetailedSegment) GetAthletePrEffort() SummaryPRSegmentEffort
GetAthletePrEffort returns the AthletePrEffort field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetAthletePrEffortOk() (*SummaryPRSegmentEffort, bool)
GetAthletePrEffortOk returns a tuple with the AthletePrEffort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetAthletePrEffort(v SummaryPRSegmentEffort)
SetAthletePrEffort sets AthletePrEffort field to given value.
func (o *DetailedSegment) HasAthletePrEffort() bool
HasAthletePrEffort returns a boolean if a field has been set.
func (o *DetailedSegment) GetAthleteSegmentStats() SummarySegmentEffort
GetAthleteSegmentStats returns the AthleteSegmentStats field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetAthleteSegmentStatsOk() (*SummarySegmentEffort, bool)
GetAthleteSegmentStatsOk returns a tuple with the AthleteSegmentStats field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetAthleteSegmentStats(v SummarySegmentEffort)
SetAthleteSegmentStats sets AthleteSegmentStats field to given value.
func (o *DetailedSegment) HasAthleteSegmentStats() bool
HasAthleteSegmentStats returns a boolean if a field has been set.
func (o *DetailedSegment) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *DetailedSegment) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *DetailedSegment) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetUpdatedAtOk() (*time.Time, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.
func (o *DetailedSegment) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
func (o *DetailedSegment) GetTotalElevationGain() float32
GetTotalElevationGain returns the TotalElevationGain field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetTotalElevationGainOk() (*float32, bool)
GetTotalElevationGainOk returns a tuple with the TotalElevationGain field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetTotalElevationGain(v float32)
SetTotalElevationGain sets TotalElevationGain field to given value.
func (o *DetailedSegment) HasTotalElevationGain() bool
HasTotalElevationGain returns a boolean if a field has been set.
func (o *DetailedSegment) GetMap() PolylineMap
GetMap returns the Map field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetMapOk() (*PolylineMap, bool)
GetMapOk returns a tuple with the Map field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetMap(v PolylineMap)
SetMap sets Map field to given value.
func (o *DetailedSegment) HasMap() bool
HasMap returns a boolean if a field has been set.
func (o *DetailedSegment) GetEffortCount() int32
GetEffortCount returns the EffortCount field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetEffortCountOk() (*int32, bool)
GetEffortCountOk returns a tuple with the EffortCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetEffortCount(v int32)
SetEffortCount sets EffortCount field to given value.
func (o *DetailedSegment) HasEffortCount() bool
HasEffortCount returns a boolean if a field has been set.
func (o *DetailedSegment) GetAthleteCount() int32
GetAthleteCount returns the AthleteCount field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetAthleteCountOk() (*int32, bool)
GetAthleteCountOk returns a tuple with the AthleteCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetAthleteCount(v int32)
SetAthleteCount sets AthleteCount field to given value.
func (o *DetailedSegment) HasAthleteCount() bool
HasAthleteCount returns a boolean if a field has been set.
func (o *DetailedSegment) GetHazardous() bool
GetHazardous returns the Hazardous field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetHazardousOk() (*bool, bool)
GetHazardousOk returns a tuple with the Hazardous field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetHazardous(v bool)
SetHazardous sets Hazardous field to given value.
func (o *DetailedSegment) HasHazardous() bool
HasHazardous returns a boolean if a field has been set.
func (o *DetailedSegment) GetStarCount() int32
GetStarCount returns the StarCount field if non-nil, zero value otherwise.
func (o *DetailedSegment) GetStarCountOk() (*int32, bool)
GetStarCountOk returns a tuple with the StarCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *DetailedSegment) SetStarCount(v int32)
SetStarCount sets StarCount field to given value.
func (o *DetailedSegment) HasStarCount() bool
HasStarCount returns a boolean if a field has been set.