1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_gera_location.go 14.47 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Npcf_SMPolicyControl API
Session Management Policy Control Service © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Npcf_SMPolicyControl
import (
"encoding/json"
"time"
)
// checks if the GeraLocation type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GeraLocation{}
// GeraLocation Exactly one of cgi, sai or lai shall be present.
type GeraLocation struct {
// Location number within the PLMN. See 3GPP TS 23.003, clause 4.5.
LocationNumber *string `json:"locationNumber,omitempty"`
Cgi *CellGlobalId `json:"cgi,omitempty"`
Rai *RoutingAreaId `json:"rai,omitempty"`
Sai *ServiceAreaId `json:"sai,omitempty"`
Lai *LocationAreaId `json:"lai,omitempty"`
// VLR number. See 3GPP TS 23.003 clause 5.1.
VlrNumber *string `json:"vlrNumber,omitempty"`
// MSC number. See 3GPP TS 23.003 clause 5.1.
MscNumber *string `json:"mscNumber,omitempty"`
// The value represents the elapsed time in minutes since the last network contact of the mobile station. Value \"0\" indicates that the location information was obtained after a successful paging procedure for Active Location Retrieval when the UE is in idle mode or after a successful location reporting procedure the UE is in connected mode. Any other value than \"0\" indicates that the location information is the last known one. See 3GPP TS 29.002 clause 17.7.8.
AgeOfLocationInformation *int32 `json:"ageOfLocationInformation,omitempty"`
// string with format 'date-time' as defined in OpenAPI.
UeLocationTimestamp *time.Time `json:"ueLocationTimestamp,omitempty"`
// Refer to geographical Information.See 3GPP TS 23.032 clause 7.3.2. Only the description of an ellipsoid point with uncertainty circle is allowed to be used.
GeographicalInformation *string `json:"geographicalInformation,omitempty"`
// Refers to Calling Geodetic Location.See ITU-T Recommendation Q.763 (1999) clause 3.88.2. Only the description of an ellipsoid point with uncertainty circle is allowed to be used.
GeodeticInformation *string `json:"geodeticInformation,omitempty"`
}
// NewGeraLocation instantiates a new GeraLocation 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 NewGeraLocation() *GeraLocation {
this := GeraLocation{}
return &this
}
// NewGeraLocationWithDefaults instantiates a new GeraLocation 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 NewGeraLocationWithDefaults() *GeraLocation {
this := GeraLocation{}
return &this
}
// GetLocationNumber returns the LocationNumber field value if set, zero value otherwise.
func (o *GeraLocation) GetLocationNumber() string {
if o == nil || IsNil(o.LocationNumber) {
var ret string
return ret
}
return *o.LocationNumber
}
// GetLocationNumberOk returns a tuple with the LocationNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetLocationNumberOk() (*string, bool) {
if o == nil || IsNil(o.LocationNumber) {
return nil, false
}
return o.LocationNumber, true
}
// HasLocationNumber returns a boolean if a field has been set.
func (o *GeraLocation) HasLocationNumber() bool {
if o != nil && !IsNil(o.LocationNumber) {
return true
}
return false
}
// SetLocationNumber gets a reference to the given string and assigns it to the LocationNumber field.
func (o *GeraLocation) SetLocationNumber(v string) {
o.LocationNumber = &v
}
// GetCgi returns the Cgi field value if set, zero value otherwise.
func (o *GeraLocation) GetCgi() CellGlobalId {
if o == nil || IsNil(o.Cgi) {
var ret CellGlobalId
return ret
}
return *o.Cgi
}
// GetCgiOk returns a tuple with the Cgi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetCgiOk() (*CellGlobalId, bool) {
if o == nil || IsNil(o.Cgi) {
return nil, false
}
return o.Cgi, true
}
// HasCgi returns a boolean if a field has been set.
func (o *GeraLocation) HasCgi() bool {
if o != nil && !IsNil(o.Cgi) {
return true
}
return false
}
// SetCgi gets a reference to the given CellGlobalId and assigns it to the Cgi field.
func (o *GeraLocation) SetCgi(v CellGlobalId) {
o.Cgi = &v
}
// GetRai returns the Rai field value if set, zero value otherwise.
func (o *GeraLocation) GetRai() RoutingAreaId {
if o == nil || IsNil(o.Rai) {
var ret RoutingAreaId
return ret
}
return *o.Rai
}
// GetRaiOk returns a tuple with the Rai field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetRaiOk() (*RoutingAreaId, bool) {
if o == nil || IsNil(o.Rai) {
return nil, false
}
return o.Rai, true
}
// HasRai returns a boolean if a field has been set.
func (o *GeraLocation) HasRai() bool {
if o != nil && !IsNil(o.Rai) {
return true
}
return false
}
// SetRai gets a reference to the given RoutingAreaId and assigns it to the Rai field.
func (o *GeraLocation) SetRai(v RoutingAreaId) {
o.Rai = &v
}
// GetSai returns the Sai field value if set, zero value otherwise.
func (o *GeraLocation) GetSai() ServiceAreaId {
if o == nil || IsNil(o.Sai) {
var ret ServiceAreaId
return ret
}
return *o.Sai
}
// GetSaiOk returns a tuple with the Sai field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetSaiOk() (*ServiceAreaId, bool) {
if o == nil || IsNil(o.Sai) {
return nil, false
}
return o.Sai, true
}
// HasSai returns a boolean if a field has been set.
func (o *GeraLocation) HasSai() bool {
if o != nil && !IsNil(o.Sai) {
return true
}
return false
}
// SetSai gets a reference to the given ServiceAreaId and assigns it to the Sai field.
func (o *GeraLocation) SetSai(v ServiceAreaId) {
o.Sai = &v
}
// GetLai returns the Lai field value if set, zero value otherwise.
func (o *GeraLocation) GetLai() LocationAreaId {
if o == nil || IsNil(o.Lai) {
var ret LocationAreaId
return ret
}
return *o.Lai
}
// GetLaiOk returns a tuple with the Lai field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetLaiOk() (*LocationAreaId, bool) {
if o == nil || IsNil(o.Lai) {
return nil, false
}
return o.Lai, true
}
// HasLai returns a boolean if a field has been set.
func (o *GeraLocation) HasLai() bool {
if o != nil && !IsNil(o.Lai) {
return true
}
return false
}
// SetLai gets a reference to the given LocationAreaId and assigns it to the Lai field.
func (o *GeraLocation) SetLai(v LocationAreaId) {
o.Lai = &v
}
// GetVlrNumber returns the VlrNumber field value if set, zero value otherwise.
func (o *GeraLocation) GetVlrNumber() string {
if o == nil || IsNil(o.VlrNumber) {
var ret string
return ret
}
return *o.VlrNumber
}
// GetVlrNumberOk returns a tuple with the VlrNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetVlrNumberOk() (*string, bool) {
if o == nil || IsNil(o.VlrNumber) {
return nil, false
}
return o.VlrNumber, true
}
// HasVlrNumber returns a boolean if a field has been set.
func (o *GeraLocation) HasVlrNumber() bool {
if o != nil && !IsNil(o.VlrNumber) {
return true
}
return false
}
// SetVlrNumber gets a reference to the given string and assigns it to the VlrNumber field.
func (o *GeraLocation) SetVlrNumber(v string) {
o.VlrNumber = &v
}
// GetMscNumber returns the MscNumber field value if set, zero value otherwise.
func (o *GeraLocation) GetMscNumber() string {
if o == nil || IsNil(o.MscNumber) {
var ret string
return ret
}
return *o.MscNumber
}
// GetMscNumberOk returns a tuple with the MscNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetMscNumberOk() (*string, bool) {
if o == nil || IsNil(o.MscNumber) {
return nil, false
}
return o.MscNumber, true
}
// HasMscNumber returns a boolean if a field has been set.
func (o *GeraLocation) HasMscNumber() bool {
if o != nil && !IsNil(o.MscNumber) {
return true
}
return false
}
// SetMscNumber gets a reference to the given string and assigns it to the MscNumber field.
func (o *GeraLocation) SetMscNumber(v string) {
o.MscNumber = &v
}
// GetAgeOfLocationInformation returns the AgeOfLocationInformation field value if set, zero value otherwise.
func (o *GeraLocation) GetAgeOfLocationInformation() int32 {
if o == nil || IsNil(o.AgeOfLocationInformation) {
var ret int32
return ret
}
return *o.AgeOfLocationInformation
}
// GetAgeOfLocationInformationOk returns a tuple with the AgeOfLocationInformation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetAgeOfLocationInformationOk() (*int32, bool) {
if o == nil || IsNil(o.AgeOfLocationInformation) {
return nil, false
}
return o.AgeOfLocationInformation, true
}
// HasAgeOfLocationInformation returns a boolean if a field has been set.
func (o *GeraLocation) HasAgeOfLocationInformation() bool {
if o != nil && !IsNil(o.AgeOfLocationInformation) {
return true
}
return false
}
// SetAgeOfLocationInformation gets a reference to the given int32 and assigns it to the AgeOfLocationInformation field.
func (o *GeraLocation) SetAgeOfLocationInformation(v int32) {
o.AgeOfLocationInformation = &v
}
// GetUeLocationTimestamp returns the UeLocationTimestamp field value if set, zero value otherwise.
func (o *GeraLocation) GetUeLocationTimestamp() time.Time {
if o == nil || IsNil(o.UeLocationTimestamp) {
var ret time.Time
return ret
}
return *o.UeLocationTimestamp
}
// GetUeLocationTimestampOk returns a tuple with the UeLocationTimestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetUeLocationTimestampOk() (*time.Time, bool) {
if o == nil || IsNil(o.UeLocationTimestamp) {
return nil, false
}
return o.UeLocationTimestamp, true
}
// HasUeLocationTimestamp returns a boolean if a field has been set.
func (o *GeraLocation) HasUeLocationTimestamp() bool {
if o != nil && !IsNil(o.UeLocationTimestamp) {
return true
}
return false
}
// SetUeLocationTimestamp gets a reference to the given time.Time and assigns it to the UeLocationTimestamp field.
func (o *GeraLocation) SetUeLocationTimestamp(v time.Time) {
o.UeLocationTimestamp = &v
}
// GetGeographicalInformation returns the GeographicalInformation field value if set, zero value otherwise.
func (o *GeraLocation) GetGeographicalInformation() string {
if o == nil || IsNil(o.GeographicalInformation) {
var ret string
return ret
}
return *o.GeographicalInformation
}
// GetGeographicalInformationOk returns a tuple with the GeographicalInformation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetGeographicalInformationOk() (*string, bool) {
if o == nil || IsNil(o.GeographicalInformation) {
return nil, false
}
return o.GeographicalInformation, true
}
// HasGeographicalInformation returns a boolean if a field has been set.
func (o *GeraLocation) HasGeographicalInformation() bool {
if o != nil && !IsNil(o.GeographicalInformation) {
return true
}
return false
}
// SetGeographicalInformation gets a reference to the given string and assigns it to the GeographicalInformation field.
func (o *GeraLocation) SetGeographicalInformation(v string) {
o.GeographicalInformation = &v
}
// GetGeodeticInformation returns the GeodeticInformation field value if set, zero value otherwise.
func (o *GeraLocation) GetGeodeticInformation() string {
if o == nil || IsNil(o.GeodeticInformation) {
var ret string
return ret
}
return *o.GeodeticInformation
}
// GetGeodeticInformationOk returns a tuple with the GeodeticInformation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GeraLocation) GetGeodeticInformationOk() (*string, bool) {
if o == nil || IsNil(o.GeodeticInformation) {
return nil, false
}
return o.GeodeticInformation, true
}
// HasGeodeticInformation returns a boolean if a field has been set.
func (o *GeraLocation) HasGeodeticInformation() bool {
if o != nil && !IsNil(o.GeodeticInformation) {
return true
}
return false
}
// SetGeodeticInformation gets a reference to the given string and assigns it to the GeodeticInformation field.
func (o *GeraLocation) SetGeodeticInformation(v string) {
o.GeodeticInformation = &v
}
func (o GeraLocation) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GeraLocation) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.LocationNumber) {
toSerialize["locationNumber"] = o.LocationNumber
}
if !IsNil(o.Cgi) {
toSerialize["cgi"] = o.Cgi
}
if !IsNil(o.Rai) {
toSerialize["rai"] = o.Rai
}
if !IsNil(o.Sai) {
toSerialize["sai"] = o.Sai
}
if !IsNil(o.Lai) {
toSerialize["lai"] = o.Lai
}
if !IsNil(o.VlrNumber) {
toSerialize["vlrNumber"] = o.VlrNumber
}
if !IsNil(o.MscNumber) {
toSerialize["mscNumber"] = o.MscNumber
}
if !IsNil(o.AgeOfLocationInformation) {
toSerialize["ageOfLocationInformation"] = o.AgeOfLocationInformation
}
if !IsNil(o.UeLocationTimestamp) {
toSerialize["ueLocationTimestamp"] = o.UeLocationTimestamp
}
if !IsNil(o.GeographicalInformation) {
toSerialize["geographicalInformation"] = o.GeographicalInformation
}
if !IsNil(o.GeodeticInformation) {
toSerialize["geodeticInformation"] = o.GeodeticInformation
}
return toSerialize, nil
}
type NullableGeraLocation struct {
value *GeraLocation
isSet bool
}
func (v NullableGeraLocation) Get() *GeraLocation {
return v.value
}
func (v *NullableGeraLocation) Set(val *GeraLocation) {
v.value = val
v.isSet = true
}
func (v NullableGeraLocation) IsSet() bool {
return v.isSet
}
func (v *NullableGeraLocation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGeraLocation(val *GeraLocation) *NullableGeraLocation {
return &NullableGeraLocation{value: val, isSet: true}
}
func (v NullableGeraLocation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGeraLocation) 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

搜索帮助