1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_network_area_info.go 6.15 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Npcf_BDTPolicyControl Service API
PCF BDT Policy Control Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Npcf_BDTPolicyControl
import (
"encoding/json"
)
// checks if the NetworkAreaInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &NetworkAreaInfo{}
// NetworkAreaInfo Describes a network area information in which the NF service consumer requests the number of UEs.
type NetworkAreaInfo struct {
// Contains a list of E-UTRA cell identities.
Ecgis []Ecgi `json:"ecgis,omitempty"`
// Contains a list of NR cell identities.
Ncgis []Ncgi `json:"ncgis,omitempty"`
// Contains a list of NG RAN nodes.
GRanNodeIds []GlobalRanNodeId `json:"gRanNodeIds,omitempty"`
// Contains a list of tracking area identities.
Tais []Tai `json:"tais,omitempty"`
}
// NewNetworkAreaInfo instantiates a new NetworkAreaInfo 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 NewNetworkAreaInfo() *NetworkAreaInfo {
this := NetworkAreaInfo{}
return &this
}
// NewNetworkAreaInfoWithDefaults instantiates a new NetworkAreaInfo 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 NewNetworkAreaInfoWithDefaults() *NetworkAreaInfo {
this := NetworkAreaInfo{}
return &this
}
// GetEcgis returns the Ecgis field value if set, zero value otherwise.
func (o *NetworkAreaInfo) GetEcgis() []Ecgi {
if o == nil || IsNil(o.Ecgis) {
var ret []Ecgi
return ret
}
return o.Ecgis
}
// GetEcgisOk returns a tuple with the Ecgis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NetworkAreaInfo) GetEcgisOk() ([]Ecgi, bool) {
if o == nil || IsNil(o.Ecgis) {
return nil, false
}
return o.Ecgis, true
}
// HasEcgis returns a boolean if a field has been set.
func (o *NetworkAreaInfo) HasEcgis() bool {
if o != nil && !IsNil(o.Ecgis) {
return true
}
return false
}
// SetEcgis gets a reference to the given []Ecgi and assigns it to the Ecgis field.
func (o *NetworkAreaInfo) SetEcgis(v []Ecgi) {
o.Ecgis = v
}
// GetNcgis returns the Ncgis field value if set, zero value otherwise.
func (o *NetworkAreaInfo) GetNcgis() []Ncgi {
if o == nil || IsNil(o.Ncgis) {
var ret []Ncgi
return ret
}
return o.Ncgis
}
// GetNcgisOk returns a tuple with the Ncgis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NetworkAreaInfo) GetNcgisOk() ([]Ncgi, bool) {
if o == nil || IsNil(o.Ncgis) {
return nil, false
}
return o.Ncgis, true
}
// HasNcgis returns a boolean if a field has been set.
func (o *NetworkAreaInfo) HasNcgis() bool {
if o != nil && !IsNil(o.Ncgis) {
return true
}
return false
}
// SetNcgis gets a reference to the given []Ncgi and assigns it to the Ncgis field.
func (o *NetworkAreaInfo) SetNcgis(v []Ncgi) {
o.Ncgis = v
}
// GetGRanNodeIds returns the GRanNodeIds field value if set, zero value otherwise.
func (o *NetworkAreaInfo) GetGRanNodeIds() []GlobalRanNodeId {
if o == nil || IsNil(o.GRanNodeIds) {
var ret []GlobalRanNodeId
return ret
}
return o.GRanNodeIds
}
// GetGRanNodeIdsOk returns a tuple with the GRanNodeIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NetworkAreaInfo) GetGRanNodeIdsOk() ([]GlobalRanNodeId, bool) {
if o == nil || IsNil(o.GRanNodeIds) {
return nil, false
}
return o.GRanNodeIds, true
}
// HasGRanNodeIds returns a boolean if a field has been set.
func (o *NetworkAreaInfo) HasGRanNodeIds() bool {
if o != nil && !IsNil(o.GRanNodeIds) {
return true
}
return false
}
// SetGRanNodeIds gets a reference to the given []GlobalRanNodeId and assigns it to the GRanNodeIds field.
func (o *NetworkAreaInfo) SetGRanNodeIds(v []GlobalRanNodeId) {
o.GRanNodeIds = v
}
// GetTais returns the Tais field value if set, zero value otherwise.
func (o *NetworkAreaInfo) GetTais() []Tai {
if o == nil || IsNil(o.Tais) {
var ret []Tai
return ret
}
return o.Tais
}
// GetTaisOk returns a tuple with the Tais field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NetworkAreaInfo) GetTaisOk() ([]Tai, bool) {
if o == nil || IsNil(o.Tais) {
return nil, false
}
return o.Tais, true
}
// HasTais returns a boolean if a field has been set.
func (o *NetworkAreaInfo) HasTais() bool {
if o != nil && !IsNil(o.Tais) {
return true
}
return false
}
// SetTais gets a reference to the given []Tai and assigns it to the Tais field.
func (o *NetworkAreaInfo) SetTais(v []Tai) {
o.Tais = v
}
func (o NetworkAreaInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o NetworkAreaInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Ecgis) {
toSerialize["ecgis"] = o.Ecgis
}
if !IsNil(o.Ncgis) {
toSerialize["ncgis"] = o.Ncgis
}
if !IsNil(o.GRanNodeIds) {
toSerialize["gRanNodeIds"] = o.GRanNodeIds
}
if !IsNil(o.Tais) {
toSerialize["tais"] = o.Tais
}
return toSerialize, nil
}
type NullableNetworkAreaInfo struct {
value *NetworkAreaInfo
isSet bool
}
func (v NullableNetworkAreaInfo) Get() *NetworkAreaInfo {
return v.value
}
func (v *NullableNetworkAreaInfo) Set(val *NetworkAreaInfo) {
v.value = val
v.isSet = true
}
func (v NullableNetworkAreaInfo) IsSet() bool {
return v.isSet
}
func (v *NullableNetworkAreaInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNetworkAreaInfo(val *NetworkAreaInfo) *NullableNetworkAreaInfo {
return &NullableNetworkAreaInfo{value: val, isSet: true}
}
func (v NullableNetworkAreaInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableNetworkAreaInfo) 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

搜索帮助