1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_positioning_ran_subnet.go 5.73 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Provisioning MnS
OAS 3.0.1 definition of the Provisioning MnS © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 17.6.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_ProvMnS
import (
"encoding/json"
)
// checks if the PositioningRANSubnet type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PositioningRANSubnet{}
// PositioningRANSubnet struct for PositioningRANSubnet
type PositioningRANSubnet struct {
Availability []string `json:"availability,omitempty"`
PredictionFrequency *PredictionFrequency `json:"predictionFrequency,omitempty"`
Accuracy *float32 `json:"accuracy,omitempty"`
}
// NewPositioningRANSubnet instantiates a new PositioningRANSubnet 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 NewPositioningRANSubnet() *PositioningRANSubnet {
this := PositioningRANSubnet{}
return &this
}
// NewPositioningRANSubnetWithDefaults instantiates a new PositioningRANSubnet 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 NewPositioningRANSubnetWithDefaults() *PositioningRANSubnet {
this := PositioningRANSubnet{}
return &this
}
// GetAvailability returns the Availability field value if set, zero value otherwise.
func (o *PositioningRANSubnet) GetAvailability() []string {
if o == nil || IsNil(o.Availability) {
var ret []string
return ret
}
return o.Availability
}
// GetAvailabilityOk returns a tuple with the Availability field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PositioningRANSubnet) GetAvailabilityOk() ([]string, bool) {
if o == nil || IsNil(o.Availability) {
return nil, false
}
return o.Availability, true
}
// HasAvailability returns a boolean if a field has been set.
func (o *PositioningRANSubnet) HasAvailability() bool {
if o != nil && !IsNil(o.Availability) {
return true
}
return false
}
// SetAvailability gets a reference to the given []string and assigns it to the Availability field.
func (o *PositioningRANSubnet) SetAvailability(v []string) {
o.Availability = v
}
// GetPredictionFrequency returns the PredictionFrequency field value if set, zero value otherwise.
func (o *PositioningRANSubnet) GetPredictionFrequency() PredictionFrequency {
if o == nil || IsNil(o.PredictionFrequency) {
var ret PredictionFrequency
return ret
}
return *o.PredictionFrequency
}
// GetPredictionFrequencyOk returns a tuple with the PredictionFrequency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PositioningRANSubnet) GetPredictionFrequencyOk() (*PredictionFrequency, bool) {
if o == nil || IsNil(o.PredictionFrequency) {
return nil, false
}
return o.PredictionFrequency, true
}
// HasPredictionFrequency returns a boolean if a field has been set.
func (o *PositioningRANSubnet) HasPredictionFrequency() bool {
if o != nil && !IsNil(o.PredictionFrequency) {
return true
}
return false
}
// SetPredictionFrequency gets a reference to the given PredictionFrequency and assigns it to the PredictionFrequency field.
func (o *PositioningRANSubnet) SetPredictionFrequency(v PredictionFrequency) {
o.PredictionFrequency = &v
}
// GetAccuracy returns the Accuracy field value if set, zero value otherwise.
func (o *PositioningRANSubnet) GetAccuracy() float32 {
if o == nil || IsNil(o.Accuracy) {
var ret float32
return ret
}
return *o.Accuracy
}
// GetAccuracyOk returns a tuple with the Accuracy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PositioningRANSubnet) GetAccuracyOk() (*float32, bool) {
if o == nil || IsNil(o.Accuracy) {
return nil, false
}
return o.Accuracy, true
}
// HasAccuracy returns a boolean if a field has been set.
func (o *PositioningRANSubnet) HasAccuracy() bool {
if o != nil && !IsNil(o.Accuracy) {
return true
}
return false
}
// SetAccuracy gets a reference to the given float32 and assigns it to the Accuracy field.
func (o *PositioningRANSubnet) SetAccuracy(v float32) {
o.Accuracy = &v
}
func (o PositioningRANSubnet) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PositioningRANSubnet) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Availability) {
toSerialize["availability"] = o.Availability
}
if !IsNil(o.PredictionFrequency) {
toSerialize["predictionFrequency"] = o.PredictionFrequency
}
if !IsNil(o.Accuracy) {
toSerialize["accuracy"] = o.Accuracy
}
return toSerialize, nil
}
type NullablePositioningRANSubnet struct {
value *PositioningRANSubnet
isSet bool
}
func (v NullablePositioningRANSubnet) Get() *PositioningRANSubnet {
return v.value
}
func (v *NullablePositioningRANSubnet) Set(val *PositioningRANSubnet) {
v.value = val
v.isSet = true
}
func (v NullablePositioningRANSubnet) IsSet() bool {
return v.isSet
}
func (v *NullablePositioningRANSubnet) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePositioningRANSubnet(val *PositioningRANSubnet) *NullablePositioningRANSubnet {
return &NullablePositioningRANSubnet{value: val, isSet: true}
}
func (v NullablePositioningRANSubnet) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePositioningRANSubnet) 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

搜索帮助