1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_location_data.go 27.64 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856
/*
3gpp-data-reporting
API for 3GPP Data Reporting. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_DataReporting
import (
"encoding/json"
"fmt"
"time"
)
// checks if the LocationData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &LocationData{}
// LocationData Information within Determine Location Response.
type LocationData struct {
LocationEstimate GeographicArea `json:"locationEstimate"`
AccuracyFulfilmentIndicator *AccuracyFulfilmentIndicator `json:"accuracyFulfilmentIndicator,omitempty"`
// Indicates value of the age of the location estimate.
AgeOfLocationEstimate *int32 `json:"ageOfLocationEstimate,omitempty"`
// string with format 'date-time' as defined in OpenAPI.
TimestampOfLocationEstimate *time.Time `json:"timestampOfLocationEstimate,omitempty"`
VelocityEstimate *VelocityEstimate `json:"velocityEstimate,omitempty"`
CivicAddress *CivicAddress `json:"civicAddress,omitempty"`
LocalLocationEstimate *LocalArea `json:"localLocationEstimate,omitempty"`
PositioningDataList []PositioningMethodAndUsage `json:"positioningDataList,omitempty"`
GnssPositioningDataList []GnssPositioningMethodAndUsage `json:"gnssPositioningDataList,omitempty"`
Ecgi *Ecgi `json:"ecgi,omitempty"`
Ncgi *Ncgi `json:"ncgi,omitempty"`
// Indicates value of altitude.
Altitude *float64 `json:"altitude,omitempty"`
// Specifies the measured uncompensated atmospheric pressure.
BarometricPressure *int32 `json:"barometricPressure,omitempty"`
// LMF identification.
ServingLMFIdentification *string `json:"servingLMFIdentification,omitempty"`
// Positioning capabilities supported by the UE. A string encoding the \"ProvideCapabilities-r9-IEs\" IE as specified in clause 6.3 of 3GPP TS 37.355 (start from octet 1).
UePositioningCap *string `json:"uePositioningCap,omitempty"`
UeAreaInd NullableUeAreaIndication `json:"ueAreaInd,omitempty"`
// A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported.
SupportedFeatures *string `json:"supportedFeatures,omitempty"`
AchievedQos *MinorLocationQoS `json:"achievedQos,omitempty"`
AcceptedPeriodicEventInfo *PeriodicEventInfo `json:"acceptedPeriodicEventInfo,omitempty"`
HaGnssMetrics *HighAccuracyGnssMetrics `json:"haGnssMetrics,omitempty"`
}
type _LocationData LocationData
// NewLocationData instantiates a new LocationData 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 NewLocationData(locationEstimate GeographicArea) *LocationData {
this := LocationData{}
this.LocationEstimate = locationEstimate
return &this
}
// NewLocationDataWithDefaults instantiates a new LocationData 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 NewLocationDataWithDefaults() *LocationData {
this := LocationData{}
return &this
}
// GetLocationEstimate returns the LocationEstimate field value
func (o *LocationData) GetLocationEstimate() GeographicArea {
if o == nil {
var ret GeographicArea
return ret
}
return o.LocationEstimate
}
// GetLocationEstimateOk returns a tuple with the LocationEstimate field value
// and a boolean to check if the value has been set.
func (o *LocationData) GetLocationEstimateOk() (*GeographicArea, bool) {
if o == nil {
return nil, false
}
return &o.LocationEstimate, true
}
// SetLocationEstimate sets field value
func (o *LocationData) SetLocationEstimate(v GeographicArea) {
o.LocationEstimate = v
}
// GetAccuracyFulfilmentIndicator returns the AccuracyFulfilmentIndicator field value if set, zero value otherwise.
func (o *LocationData) GetAccuracyFulfilmentIndicator() AccuracyFulfilmentIndicator {
if o == nil || IsNil(o.AccuracyFulfilmentIndicator) {
var ret AccuracyFulfilmentIndicator
return ret
}
return *o.AccuracyFulfilmentIndicator
}
// GetAccuracyFulfilmentIndicatorOk returns a tuple with the AccuracyFulfilmentIndicator field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetAccuracyFulfilmentIndicatorOk() (*AccuracyFulfilmentIndicator, bool) {
if o == nil || IsNil(o.AccuracyFulfilmentIndicator) {
return nil, false
}
return o.AccuracyFulfilmentIndicator, true
}
// HasAccuracyFulfilmentIndicator returns a boolean if a field has been set.
func (o *LocationData) HasAccuracyFulfilmentIndicator() bool {
if o != nil && !IsNil(o.AccuracyFulfilmentIndicator) {
return true
}
return false
}
// SetAccuracyFulfilmentIndicator gets a reference to the given AccuracyFulfilmentIndicator and assigns it to the AccuracyFulfilmentIndicator field.
func (o *LocationData) SetAccuracyFulfilmentIndicator(v AccuracyFulfilmentIndicator) {
o.AccuracyFulfilmentIndicator = &v
}
// GetAgeOfLocationEstimate returns the AgeOfLocationEstimate field value if set, zero value otherwise.
func (o *LocationData) GetAgeOfLocationEstimate() int32 {
if o == nil || IsNil(o.AgeOfLocationEstimate) {
var ret int32
return ret
}
return *o.AgeOfLocationEstimate
}
// GetAgeOfLocationEstimateOk returns a tuple with the AgeOfLocationEstimate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetAgeOfLocationEstimateOk() (*int32, bool) {
if o == nil || IsNil(o.AgeOfLocationEstimate) {
return nil, false
}
return o.AgeOfLocationEstimate, true
}
// HasAgeOfLocationEstimate returns a boolean if a field has been set.
func (o *LocationData) HasAgeOfLocationEstimate() bool {
if o != nil && !IsNil(o.AgeOfLocationEstimate) {
return true
}
return false
}
// SetAgeOfLocationEstimate gets a reference to the given int32 and assigns it to the AgeOfLocationEstimate field.
func (o *LocationData) SetAgeOfLocationEstimate(v int32) {
o.AgeOfLocationEstimate = &v
}
// GetTimestampOfLocationEstimate returns the TimestampOfLocationEstimate field value if set, zero value otherwise.
func (o *LocationData) GetTimestampOfLocationEstimate() time.Time {
if o == nil || IsNil(o.TimestampOfLocationEstimate) {
var ret time.Time
return ret
}
return *o.TimestampOfLocationEstimate
}
// GetTimestampOfLocationEstimateOk returns a tuple with the TimestampOfLocationEstimate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetTimestampOfLocationEstimateOk() (*time.Time, bool) {
if o == nil || IsNil(o.TimestampOfLocationEstimate) {
return nil, false
}
return o.TimestampOfLocationEstimate, true
}
// HasTimestampOfLocationEstimate returns a boolean if a field has been set.
func (o *LocationData) HasTimestampOfLocationEstimate() bool {
if o != nil && !IsNil(o.TimestampOfLocationEstimate) {
return true
}
return false
}
// SetTimestampOfLocationEstimate gets a reference to the given time.Time and assigns it to the TimestampOfLocationEstimate field.
func (o *LocationData) SetTimestampOfLocationEstimate(v time.Time) {
o.TimestampOfLocationEstimate = &v
}
// GetVelocityEstimate returns the VelocityEstimate field value if set, zero value otherwise.
func (o *LocationData) GetVelocityEstimate() VelocityEstimate {
if o == nil || IsNil(o.VelocityEstimate) {
var ret VelocityEstimate
return ret
}
return *o.VelocityEstimate
}
// GetVelocityEstimateOk returns a tuple with the VelocityEstimate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetVelocityEstimateOk() (*VelocityEstimate, bool) {
if o == nil || IsNil(o.VelocityEstimate) {
return nil, false
}
return o.VelocityEstimate, true
}
// HasVelocityEstimate returns a boolean if a field has been set.
func (o *LocationData) HasVelocityEstimate() bool {
if o != nil && !IsNil(o.VelocityEstimate) {
return true
}
return false
}
// SetVelocityEstimate gets a reference to the given VelocityEstimate and assigns it to the VelocityEstimate field.
func (o *LocationData) SetVelocityEstimate(v VelocityEstimate) {
o.VelocityEstimate = &v
}
// GetCivicAddress returns the CivicAddress field value if set, zero value otherwise.
func (o *LocationData) GetCivicAddress() CivicAddress {
if o == nil || IsNil(o.CivicAddress) {
var ret CivicAddress
return ret
}
return *o.CivicAddress
}
// GetCivicAddressOk returns a tuple with the CivicAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetCivicAddressOk() (*CivicAddress, bool) {
if o == nil || IsNil(o.CivicAddress) {
return nil, false
}
return o.CivicAddress, true
}
// HasCivicAddress returns a boolean if a field has been set.
func (o *LocationData) HasCivicAddress() bool {
if o != nil && !IsNil(o.CivicAddress) {
return true
}
return false
}
// SetCivicAddress gets a reference to the given CivicAddress and assigns it to the CivicAddress field.
func (o *LocationData) SetCivicAddress(v CivicAddress) {
o.CivicAddress = &v
}
// GetLocalLocationEstimate returns the LocalLocationEstimate field value if set, zero value otherwise.
func (o *LocationData) GetLocalLocationEstimate() LocalArea {
if o == nil || IsNil(o.LocalLocationEstimate) {
var ret LocalArea
return ret
}
return *o.LocalLocationEstimate
}
// GetLocalLocationEstimateOk returns a tuple with the LocalLocationEstimate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetLocalLocationEstimateOk() (*LocalArea, bool) {
if o == nil || IsNil(o.LocalLocationEstimate) {
return nil, false
}
return o.LocalLocationEstimate, true
}
// HasLocalLocationEstimate returns a boolean if a field has been set.
func (o *LocationData) HasLocalLocationEstimate() bool {
if o != nil && !IsNil(o.LocalLocationEstimate) {
return true
}
return false
}
// SetLocalLocationEstimate gets a reference to the given LocalArea and assigns it to the LocalLocationEstimate field.
func (o *LocationData) SetLocalLocationEstimate(v LocalArea) {
o.LocalLocationEstimate = &v
}
// GetPositioningDataList returns the PositioningDataList field value if set, zero value otherwise.
func (o *LocationData) GetPositioningDataList() []PositioningMethodAndUsage {
if o == nil || IsNil(o.PositioningDataList) {
var ret []PositioningMethodAndUsage
return ret
}
return o.PositioningDataList
}
// GetPositioningDataListOk returns a tuple with the PositioningDataList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetPositioningDataListOk() ([]PositioningMethodAndUsage, bool) {
if o == nil || IsNil(o.PositioningDataList) {
return nil, false
}
return o.PositioningDataList, true
}
// HasPositioningDataList returns a boolean if a field has been set.
func (o *LocationData) HasPositioningDataList() bool {
if o != nil && !IsNil(o.PositioningDataList) {
return true
}
return false
}
// SetPositioningDataList gets a reference to the given []PositioningMethodAndUsage and assigns it to the PositioningDataList field.
func (o *LocationData) SetPositioningDataList(v []PositioningMethodAndUsage) {
o.PositioningDataList = v
}
// GetGnssPositioningDataList returns the GnssPositioningDataList field value if set, zero value otherwise.
func (o *LocationData) GetGnssPositioningDataList() []GnssPositioningMethodAndUsage {
if o == nil || IsNil(o.GnssPositioningDataList) {
var ret []GnssPositioningMethodAndUsage
return ret
}
return o.GnssPositioningDataList
}
// GetGnssPositioningDataListOk returns a tuple with the GnssPositioningDataList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetGnssPositioningDataListOk() ([]GnssPositioningMethodAndUsage, bool) {
if o == nil || IsNil(o.GnssPositioningDataList) {
return nil, false
}
return o.GnssPositioningDataList, true
}
// HasGnssPositioningDataList returns a boolean if a field has been set.
func (o *LocationData) HasGnssPositioningDataList() bool {
if o != nil && !IsNil(o.GnssPositioningDataList) {
return true
}
return false
}
// SetGnssPositioningDataList gets a reference to the given []GnssPositioningMethodAndUsage and assigns it to the GnssPositioningDataList field.
func (o *LocationData) SetGnssPositioningDataList(v []GnssPositioningMethodAndUsage) {
o.GnssPositioningDataList = v
}
// GetEcgi returns the Ecgi field value if set, zero value otherwise.
func (o *LocationData) GetEcgi() Ecgi {
if o == nil || IsNil(o.Ecgi) {
var ret Ecgi
return ret
}
return *o.Ecgi
}
// GetEcgiOk returns a tuple with the Ecgi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetEcgiOk() (*Ecgi, bool) {
if o == nil || IsNil(o.Ecgi) {
return nil, false
}
return o.Ecgi, true
}
// HasEcgi returns a boolean if a field has been set.
func (o *LocationData) HasEcgi() bool {
if o != nil && !IsNil(o.Ecgi) {
return true
}
return false
}
// SetEcgi gets a reference to the given Ecgi and assigns it to the Ecgi field.
func (o *LocationData) SetEcgi(v Ecgi) {
o.Ecgi = &v
}
// GetNcgi returns the Ncgi field value if set, zero value otherwise.
func (o *LocationData) GetNcgi() Ncgi {
if o == nil || IsNil(o.Ncgi) {
var ret Ncgi
return ret
}
return *o.Ncgi
}
// GetNcgiOk returns a tuple with the Ncgi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetNcgiOk() (*Ncgi, bool) {
if o == nil || IsNil(o.Ncgi) {
return nil, false
}
return o.Ncgi, true
}
// HasNcgi returns a boolean if a field has been set.
func (o *LocationData) HasNcgi() bool {
if o != nil && !IsNil(o.Ncgi) {
return true
}
return false
}
// SetNcgi gets a reference to the given Ncgi and assigns it to the Ncgi field.
func (o *LocationData) SetNcgi(v Ncgi) {
o.Ncgi = &v
}
// GetAltitude returns the Altitude field value if set, zero value otherwise.
func (o *LocationData) GetAltitude() float64 {
if o == nil || IsNil(o.Altitude) {
var ret float64
return ret
}
return *o.Altitude
}
// GetAltitudeOk returns a tuple with the Altitude field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetAltitudeOk() (*float64, bool) {
if o == nil || IsNil(o.Altitude) {
return nil, false
}
return o.Altitude, true
}
// HasAltitude returns a boolean if a field has been set.
func (o *LocationData) HasAltitude() bool {
if o != nil && !IsNil(o.Altitude) {
return true
}
return false
}
// SetAltitude gets a reference to the given float64 and assigns it to the Altitude field.
func (o *LocationData) SetAltitude(v float64) {
o.Altitude = &v
}
// GetBarometricPressure returns the BarometricPressure field value if set, zero value otherwise.
func (o *LocationData) GetBarometricPressure() int32 {
if o == nil || IsNil(o.BarometricPressure) {
var ret int32
return ret
}
return *o.BarometricPressure
}
// GetBarometricPressureOk returns a tuple with the BarometricPressure field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetBarometricPressureOk() (*int32, bool) {
if o == nil || IsNil(o.BarometricPressure) {
return nil, false
}
return o.BarometricPressure, true
}
// HasBarometricPressure returns a boolean if a field has been set.
func (o *LocationData) HasBarometricPressure() bool {
if o != nil && !IsNil(o.BarometricPressure) {
return true
}
return false
}
// SetBarometricPressure gets a reference to the given int32 and assigns it to the BarometricPressure field.
func (o *LocationData) SetBarometricPressure(v int32) {
o.BarometricPressure = &v
}
// GetServingLMFIdentification returns the ServingLMFIdentification field value if set, zero value otherwise.
func (o *LocationData) GetServingLMFIdentification() string {
if o == nil || IsNil(o.ServingLMFIdentification) {
var ret string
return ret
}
return *o.ServingLMFIdentification
}
// GetServingLMFIdentificationOk returns a tuple with the ServingLMFIdentification field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetServingLMFIdentificationOk() (*string, bool) {
if o == nil || IsNil(o.ServingLMFIdentification) {
return nil, false
}
return o.ServingLMFIdentification, true
}
// HasServingLMFIdentification returns a boolean if a field has been set.
func (o *LocationData) HasServingLMFIdentification() bool {
if o != nil && !IsNil(o.ServingLMFIdentification) {
return true
}
return false
}
// SetServingLMFIdentification gets a reference to the given string and assigns it to the ServingLMFIdentification field.
func (o *LocationData) SetServingLMFIdentification(v string) {
o.ServingLMFIdentification = &v
}
// GetUePositioningCap returns the UePositioningCap field value if set, zero value otherwise.
func (o *LocationData) GetUePositioningCap() string {
if o == nil || IsNil(o.UePositioningCap) {
var ret string
return ret
}
return *o.UePositioningCap
}
// GetUePositioningCapOk returns a tuple with the UePositioningCap field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetUePositioningCapOk() (*string, bool) {
if o == nil || IsNil(o.UePositioningCap) {
return nil, false
}
return o.UePositioningCap, true
}
// HasUePositioningCap returns a boolean if a field has been set.
func (o *LocationData) HasUePositioningCap() bool {
if o != nil && !IsNil(o.UePositioningCap) {
return true
}
return false
}
// SetUePositioningCap gets a reference to the given string and assigns it to the UePositioningCap field.
func (o *LocationData) SetUePositioningCap(v string) {
o.UePositioningCap = &v
}
// GetUeAreaInd returns the UeAreaInd field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *LocationData) GetUeAreaInd() UeAreaIndication {
if o == nil || IsNil(o.UeAreaInd.Get()) {
var ret UeAreaIndication
return ret
}
return *o.UeAreaInd.Get()
}
// GetUeAreaIndOk returns a tuple with the UeAreaInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *LocationData) GetUeAreaIndOk() (*UeAreaIndication, bool) {
if o == nil {
return nil, false
}
return o.UeAreaInd.Get(), o.UeAreaInd.IsSet()
}
// HasUeAreaInd returns a boolean if a field has been set.
func (o *LocationData) HasUeAreaInd() bool {
if o != nil && o.UeAreaInd.IsSet() {
return true
}
return false
}
// SetUeAreaInd gets a reference to the given NullableUeAreaIndication and assigns it to the UeAreaInd field.
func (o *LocationData) SetUeAreaInd(v UeAreaIndication) {
o.UeAreaInd.Set(&v)
}
// SetUeAreaIndNil sets the value for UeAreaInd to be an explicit nil
func (o *LocationData) SetUeAreaIndNil() {
o.UeAreaInd.Set(nil)
}
// UnsetUeAreaInd ensures that no value is present for UeAreaInd, not even an explicit nil
func (o *LocationData) UnsetUeAreaInd() {
o.UeAreaInd.Unset()
}
// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise.
func (o *LocationData) GetSupportedFeatures() string {
if o == nil || IsNil(o.SupportedFeatures) {
var ret string
return ret
}
return *o.SupportedFeatures
}
// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetSupportedFeaturesOk() (*string, bool) {
if o == nil || IsNil(o.SupportedFeatures) {
return nil, false
}
return o.SupportedFeatures, true
}
// HasSupportedFeatures returns a boolean if a field has been set.
func (o *LocationData) HasSupportedFeatures() bool {
if o != nil && !IsNil(o.SupportedFeatures) {
return true
}
return false
}
// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field.
func (o *LocationData) SetSupportedFeatures(v string) {
o.SupportedFeatures = &v
}
// GetAchievedQos returns the AchievedQos field value if set, zero value otherwise.
func (o *LocationData) GetAchievedQos() MinorLocationQoS {
if o == nil || IsNil(o.AchievedQos) {
var ret MinorLocationQoS
return ret
}
return *o.AchievedQos
}
// GetAchievedQosOk returns a tuple with the AchievedQos field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetAchievedQosOk() (*MinorLocationQoS, bool) {
if o == nil || IsNil(o.AchievedQos) {
return nil, false
}
return o.AchievedQos, true
}
// HasAchievedQos returns a boolean if a field has been set.
func (o *LocationData) HasAchievedQos() bool {
if o != nil && !IsNil(o.AchievedQos) {
return true
}
return false
}
// SetAchievedQos gets a reference to the given MinorLocationQoS and assigns it to the AchievedQos field.
func (o *LocationData) SetAchievedQos(v MinorLocationQoS) {
o.AchievedQos = &v
}
// GetAcceptedPeriodicEventInfo returns the AcceptedPeriodicEventInfo field value if set, zero value otherwise.
func (o *LocationData) GetAcceptedPeriodicEventInfo() PeriodicEventInfo {
if o == nil || IsNil(o.AcceptedPeriodicEventInfo) {
var ret PeriodicEventInfo
return ret
}
return *o.AcceptedPeriodicEventInfo
}
// GetAcceptedPeriodicEventInfoOk returns a tuple with the AcceptedPeriodicEventInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetAcceptedPeriodicEventInfoOk() (*PeriodicEventInfo, bool) {
if o == nil || IsNil(o.AcceptedPeriodicEventInfo) {
return nil, false
}
return o.AcceptedPeriodicEventInfo, true
}
// HasAcceptedPeriodicEventInfo returns a boolean if a field has been set.
func (o *LocationData) HasAcceptedPeriodicEventInfo() bool {
if o != nil && !IsNil(o.AcceptedPeriodicEventInfo) {
return true
}
return false
}
// SetAcceptedPeriodicEventInfo gets a reference to the given PeriodicEventInfo and assigns it to the AcceptedPeriodicEventInfo field.
func (o *LocationData) SetAcceptedPeriodicEventInfo(v PeriodicEventInfo) {
o.AcceptedPeriodicEventInfo = &v
}
// GetHaGnssMetrics returns the HaGnssMetrics field value if set, zero value otherwise.
func (o *LocationData) GetHaGnssMetrics() HighAccuracyGnssMetrics {
if o == nil || IsNil(o.HaGnssMetrics) {
var ret HighAccuracyGnssMetrics
return ret
}
return *o.HaGnssMetrics
}
// GetHaGnssMetricsOk returns a tuple with the HaGnssMetrics field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LocationData) GetHaGnssMetricsOk() (*HighAccuracyGnssMetrics, bool) {
if o == nil || IsNil(o.HaGnssMetrics) {
return nil, false
}
return o.HaGnssMetrics, true
}
// HasHaGnssMetrics returns a boolean if a field has been set.
func (o *LocationData) HasHaGnssMetrics() bool {
if o != nil && !IsNil(o.HaGnssMetrics) {
return true
}
return false
}
// SetHaGnssMetrics gets a reference to the given HighAccuracyGnssMetrics and assigns it to the HaGnssMetrics field.
func (o *LocationData) SetHaGnssMetrics(v HighAccuracyGnssMetrics) {
o.HaGnssMetrics = &v
}
func (o LocationData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o LocationData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["locationEstimate"] = o.LocationEstimate
if !IsNil(o.AccuracyFulfilmentIndicator) {
toSerialize["accuracyFulfilmentIndicator"] = o.AccuracyFulfilmentIndicator
}
if !IsNil(o.AgeOfLocationEstimate) {
toSerialize["ageOfLocationEstimate"] = o.AgeOfLocationEstimate
}
if !IsNil(o.TimestampOfLocationEstimate) {
toSerialize["timestampOfLocationEstimate"] = o.TimestampOfLocationEstimate
}
if !IsNil(o.VelocityEstimate) {
toSerialize["velocityEstimate"] = o.VelocityEstimate
}
if !IsNil(o.CivicAddress) {
toSerialize["civicAddress"] = o.CivicAddress
}
if !IsNil(o.LocalLocationEstimate) {
toSerialize["localLocationEstimate"] = o.LocalLocationEstimate
}
if !IsNil(o.PositioningDataList) {
toSerialize["positioningDataList"] = o.PositioningDataList
}
if !IsNil(o.GnssPositioningDataList) {
toSerialize["gnssPositioningDataList"] = o.GnssPositioningDataList
}
if !IsNil(o.Ecgi) {
toSerialize["ecgi"] = o.Ecgi
}
if !IsNil(o.Ncgi) {
toSerialize["ncgi"] = o.Ncgi
}
if !IsNil(o.Altitude) {
toSerialize["altitude"] = o.Altitude
}
if !IsNil(o.BarometricPressure) {
toSerialize["barometricPressure"] = o.BarometricPressure
}
if !IsNil(o.ServingLMFIdentification) {
toSerialize["servingLMFIdentification"] = o.ServingLMFIdentification
}
if !IsNil(o.UePositioningCap) {
toSerialize["uePositioningCap"] = o.UePositioningCap
}
if o.UeAreaInd.IsSet() {
toSerialize["ueAreaInd"] = o.UeAreaInd.Get()
}
if !IsNil(o.SupportedFeatures) {
toSerialize["supportedFeatures"] = o.SupportedFeatures
}
if !IsNil(o.AchievedQos) {
toSerialize["achievedQos"] = o.AchievedQos
}
if !IsNil(o.AcceptedPeriodicEventInfo) {
toSerialize["acceptedPeriodicEventInfo"] = o.AcceptedPeriodicEventInfo
}
if !IsNil(o.HaGnssMetrics) {
toSerialize["haGnssMetrics"] = o.HaGnssMetrics
}
return toSerialize, nil
}
func (o *LocationData) UnmarshalJSON(bytes []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"locationEstimate",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(bytes, &allProperties)
if err != nil {
return err
}
for _, requiredProperty := range requiredProperties {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varLocationData := _LocationData{}
err = json.Unmarshal(bytes, &varLocationData)
if err != nil {
return err
}
*o = LocationData(varLocationData)
return err
}
type NullableLocationData struct {
value *LocationData
isSet bool
}
func (v NullableLocationData) Get() *LocationData {
return v.value
}
func (v *NullableLocationData) Set(val *LocationData) {
v.value = val
v.isSet = true
}
func (v NullableLocationData) IsSet() bool {
return v.isSet
}
func (v *NullableLocationData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableLocationData(val *LocationData) *NullableLocationData {
return &NullableLocationData{value: val, isSet: true}
}
func (v NullableLocationData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableLocationData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助