1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_external_mbs_service_area.go 4.92 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
3gpp-mbs-session
API for MBS Session Management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_MBSSession
import (
"encoding/json"
)
// checks if the ExternalMbsServiceArea type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ExternalMbsServiceArea{}
// ExternalMbsServiceArea List of geographic area or list of civic address info for MBS Service Area
type ExternalMbsServiceArea struct {
GeographicAreaList []GeographicArea `json:"geographicAreaList,omitempty"`
CivicAddressList []CivicAddress `json:"civicAddressList,omitempty"`
}
// NewExternalMbsServiceArea instantiates a new ExternalMbsServiceArea 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 NewExternalMbsServiceArea() *ExternalMbsServiceArea {
this := ExternalMbsServiceArea{}
return &this
}
// NewExternalMbsServiceAreaWithDefaults instantiates a new ExternalMbsServiceArea 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 NewExternalMbsServiceAreaWithDefaults() *ExternalMbsServiceArea {
this := ExternalMbsServiceArea{}
return &this
}
// GetGeographicAreaList returns the GeographicAreaList field value if set, zero value otherwise.
func (o *ExternalMbsServiceArea) GetGeographicAreaList() []GeographicArea {
if o == nil || IsNil(o.GeographicAreaList) {
var ret []GeographicArea
return ret
}
return o.GeographicAreaList
}
// GetGeographicAreaListOk returns a tuple with the GeographicAreaList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ExternalMbsServiceArea) GetGeographicAreaListOk() ([]GeographicArea, bool) {
if o == nil || IsNil(o.GeographicAreaList) {
return nil, false
}
return o.GeographicAreaList, true
}
// HasGeographicAreaList returns a boolean if a field has been set.
func (o *ExternalMbsServiceArea) HasGeographicAreaList() bool {
if o != nil && !IsNil(o.GeographicAreaList) {
return true
}
return false
}
// SetGeographicAreaList gets a reference to the given []GeographicArea and assigns it to the GeographicAreaList field.
func (o *ExternalMbsServiceArea) SetGeographicAreaList(v []GeographicArea) {
o.GeographicAreaList = v
}
// GetCivicAddressList returns the CivicAddressList field value if set, zero value otherwise.
func (o *ExternalMbsServiceArea) GetCivicAddressList() []CivicAddress {
if o == nil || IsNil(o.CivicAddressList) {
var ret []CivicAddress
return ret
}
return o.CivicAddressList
}
// GetCivicAddressListOk returns a tuple with the CivicAddressList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ExternalMbsServiceArea) GetCivicAddressListOk() ([]CivicAddress, bool) {
if o == nil || IsNil(o.CivicAddressList) {
return nil, false
}
return o.CivicAddressList, true
}
// HasCivicAddressList returns a boolean if a field has been set.
func (o *ExternalMbsServiceArea) HasCivicAddressList() bool {
if o != nil && !IsNil(o.CivicAddressList) {
return true
}
return false
}
// SetCivicAddressList gets a reference to the given []CivicAddress and assigns it to the CivicAddressList field.
func (o *ExternalMbsServiceArea) SetCivicAddressList(v []CivicAddress) {
o.CivicAddressList = v
}
func (o ExternalMbsServiceArea) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ExternalMbsServiceArea) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.GeographicAreaList) {
toSerialize["geographicAreaList"] = o.GeographicAreaList
}
if !IsNil(o.CivicAddressList) {
toSerialize["civicAddressList"] = o.CivicAddressList
}
return toSerialize, nil
}
type NullableExternalMbsServiceArea struct {
value *ExternalMbsServiceArea
isSet bool
}
func (v NullableExternalMbsServiceArea) Get() *ExternalMbsServiceArea {
return v.value
}
func (v *NullableExternalMbsServiceArea) Set(val *ExternalMbsServiceArea) {
v.value = val
v.isSet = true
}
func (v NullableExternalMbsServiceArea) IsSet() bool {
return v.isSet
}
func (v *NullableExternalMbsServiceArea) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableExternalMbsServiceArea(val *ExternalMbsServiceArea) *NullableExternalMbsServiceArea {
return &NullableExternalMbsServiceArea{value: val, isSet: true}
}
func (v NullableExternalMbsServiceArea) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableExternalMbsServiceArea) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助