1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_transmitter_info.go 5.08 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Nchf_ConvergedCharging
ConvergedCharging Service © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 3.1.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nchf_ConvergedCharging
import (
"encoding/json"
)
// checks if the TransmitterInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransmitterInfo{}
// TransmitterInfo struct for TransmitterInfo
type TransmitterInfo struct {
ProseSourceIPAddress NullableIpAddr `json:"proseSourceIPAddress,omitempty"`
ProseSourceL2Id *string `json:"proseSourceL2Id,omitempty"`
}
// NewTransmitterInfo instantiates a new TransmitterInfo 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 NewTransmitterInfo() *TransmitterInfo {
this := TransmitterInfo{}
return &this
}
// NewTransmitterInfoWithDefaults instantiates a new TransmitterInfo 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 NewTransmitterInfoWithDefaults() *TransmitterInfo {
this := TransmitterInfo{}
return &this
}
// GetProseSourceIPAddress returns the ProseSourceIPAddress field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TransmitterInfo) GetProseSourceIPAddress() IpAddr {
if o == nil || IsNil(o.ProseSourceIPAddress.Get()) {
var ret IpAddr
return ret
}
return *o.ProseSourceIPAddress.Get()
}
// GetProseSourceIPAddressOk returns a tuple with the ProseSourceIPAddress 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 *TransmitterInfo) GetProseSourceIPAddressOk() (*IpAddr, bool) {
if o == nil {
return nil, false
}
return o.ProseSourceIPAddress.Get(), o.ProseSourceIPAddress.IsSet()
}
// HasProseSourceIPAddress returns a boolean if a field has been set.
func (o *TransmitterInfo) HasProseSourceIPAddress() bool {
if o != nil && o.ProseSourceIPAddress.IsSet() {
return true
}
return false
}
// SetProseSourceIPAddress gets a reference to the given NullableIpAddr and assigns it to the ProseSourceIPAddress field.
func (o *TransmitterInfo) SetProseSourceIPAddress(v IpAddr) {
o.ProseSourceIPAddress.Set(&v)
}
// SetProseSourceIPAddressNil sets the value for ProseSourceIPAddress to be an explicit nil
func (o *TransmitterInfo) SetProseSourceIPAddressNil() {
o.ProseSourceIPAddress.Set(nil)
}
// UnsetProseSourceIPAddress ensures that no value is present for ProseSourceIPAddress, not even an explicit nil
func (o *TransmitterInfo) UnsetProseSourceIPAddress() {
o.ProseSourceIPAddress.Unset()
}
// GetProseSourceL2Id returns the ProseSourceL2Id field value if set, zero value otherwise.
func (o *TransmitterInfo) GetProseSourceL2Id() string {
if o == nil || IsNil(o.ProseSourceL2Id) {
var ret string
return ret
}
return *o.ProseSourceL2Id
}
// GetProseSourceL2IdOk returns a tuple with the ProseSourceL2Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TransmitterInfo) GetProseSourceL2IdOk() (*string, bool) {
if o == nil || IsNil(o.ProseSourceL2Id) {
return nil, false
}
return o.ProseSourceL2Id, true
}
// HasProseSourceL2Id returns a boolean if a field has been set.
func (o *TransmitterInfo) HasProseSourceL2Id() bool {
if o != nil && !IsNil(o.ProseSourceL2Id) {
return true
}
return false
}
// SetProseSourceL2Id gets a reference to the given string and assigns it to the ProseSourceL2Id field.
func (o *TransmitterInfo) SetProseSourceL2Id(v string) {
o.ProseSourceL2Id = &v
}
func (o TransmitterInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TransmitterInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.ProseSourceIPAddress.IsSet() {
toSerialize["proseSourceIPAddress"] = o.ProseSourceIPAddress.Get()
}
if !IsNil(o.ProseSourceL2Id) {
toSerialize["proseSourceL2Id"] = o.ProseSourceL2Id
}
return toSerialize, nil
}
type NullableTransmitterInfo struct {
value *TransmitterInfo
isSet bool
}
func (v NullableTransmitterInfo) Get() *TransmitterInfo {
return v.value
}
func (v *NullableTransmitterInfo) Set(val *TransmitterInfo) {
v.value = val
v.isSet = true
}
func (v NullableTransmitterInfo) IsSet() bool {
return v.isSet
}
func (v *NullableTransmitterInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTransmitterInfo(val *TransmitterInfo) *NullableTransmitterInfo {
return &NullableTransmitterInfo{value: val, isSet: true}
}
func (v NullableTransmitterInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTransmitterInfo) 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

搜索帮助