代码拉取完成,页面将自动刷新
/*
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)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。