Fetch the repository succeeded.
/*
NRF NFDiscovery Service
NRF NFDiscovery Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nnrf_NFDiscovery
import (
"encoding/json"
"fmt"
)
// checks if the NcgiTai type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &NcgiTai{}
// NcgiTai List of NR cell ids, with their pertaining TAIs
type NcgiTai struct {
Tai Tai `json:"tai"`
// List of List of NR cell ids
CellList []Ncgi `json:"cellList"`
}
type _NcgiTai NcgiTai
// NewNcgiTai instantiates a new NcgiTai 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 NewNcgiTai(tai Tai, cellList []Ncgi) *NcgiTai {
this := NcgiTai{}
this.Tai = tai
this.CellList = cellList
return &this
}
// NewNcgiTaiWithDefaults instantiates a new NcgiTai 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 NewNcgiTaiWithDefaults() *NcgiTai {
this := NcgiTai{}
return &this
}
// GetTai returns the Tai field value
func (o *NcgiTai) GetTai() Tai {
if o == nil {
var ret Tai
return ret
}
return o.Tai
}
// GetTaiOk returns a tuple with the Tai field value
// and a boolean to check if the value has been set.
func (o *NcgiTai) GetTaiOk() (*Tai, bool) {
if o == nil {
return nil, false
}
return &o.Tai, true
}
// SetTai sets field value
func (o *NcgiTai) SetTai(v Tai) {
o.Tai = v
}
// GetCellList returns the CellList field value
func (o *NcgiTai) GetCellList() []Ncgi {
if o == nil {
var ret []Ncgi
return ret
}
return o.CellList
}
// GetCellListOk returns a tuple with the CellList field value
// and a boolean to check if the value has been set.
func (o *NcgiTai) GetCellListOk() ([]Ncgi, bool) {
if o == nil {
return nil, false
}
return o.CellList, true
}
// SetCellList sets field value
func (o *NcgiTai) SetCellList(v []Ncgi) {
o.CellList = v
}
func (o NcgiTai) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o NcgiTai) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["tai"] = o.Tai
toSerialize["cellList"] = o.CellList
return toSerialize, nil
}
func (o *NcgiTai) 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{
"tai",
"cellList",
}
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)
}
}
varNcgiTai := _NcgiTai{}
err = json.Unmarshal(bytes, &varNcgiTai)
if err != nil {
return err
}
*o = NcgiTai(varNcgiTai)
return err
}
type NullableNcgiTai struct {
value *NcgiTai
isSet bool
}
func (v NullableNcgiTai) Get() *NcgiTai {
return v.value
}
func (v *NullableNcgiTai) Set(val *NcgiTai) {
v.value = val
v.isSet = true
}
func (v NullableNcgiTai) IsSet() bool {
return v.isSet
}
func (v *NullableNcgiTai) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNcgiTai(val *NcgiTai) *NullableNcgiTai {
return &NullableNcgiTai{value: val, isSet: true}
}
func (v NullableNcgiTai) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableNcgiTai) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。