1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_qos_requirement.go 8.41 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Nnwdaf_MLModelProvision
Nnwdaf_MLModelProvision API Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nnwdaf_MLModelProvision
import (
"encoding/json"
)
// checks if the QosRequirement type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &QosRequirement{}
// QosRequirement Represents the QoS requirements.
type QosRequirement struct {
// Unsigned integer representing a 5G QoS Identifier (see clause 5.7.2.1 of 3GPP TS 23.501, within the range 0 to 255.
Var5qi *int32 `json:"5qi,omitempty"`
// String representing a bit rate; the prefixes follow the standard symbols from The International System of Units, and represent x1000 multipliers, with the exception that prefix \"K\" is used to represent the standard symbol \"k\".
GfbrUl *string `json:"gfbrUl,omitempty"`
// String representing a bit rate; the prefixes follow the standard symbols from The International System of Units, and represent x1000 multipliers, with the exception that prefix \"K\" is used to represent the standard symbol \"k\".
GfbrDl *string `json:"gfbrDl,omitempty"`
ResType *QosResourceType `json:"resType,omitempty"`
// Unsigned integer indicating Packet Delay Budget (see clauses 5.7.3.4 and 5.7.4 of 3GPP TS 23.501), expressed in milliseconds.
Pdb *int32 `json:"pdb,omitempty"`
// String representing Packet Error Rate (see clause 5.7.3.5 and 5.7.4 of 3GPP TS 23.501, expressed as a \"scalar x 10-k\" where the scalar and the exponent k are each encoded as one decimal digit.
Per *string `json:"per,omitempty"`
}
// NewQosRequirement instantiates a new QosRequirement 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 NewQosRequirement() *QosRequirement {
this := QosRequirement{}
return &this
}
// NewQosRequirementWithDefaults instantiates a new QosRequirement 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 NewQosRequirementWithDefaults() *QosRequirement {
this := QosRequirement{}
return &this
}
// GetVar5qi returns the Var5qi field value if set, zero value otherwise.
func (o *QosRequirement) GetVar5qi() int32 {
if o == nil || IsNil(o.Var5qi) {
var ret int32
return ret
}
return *o.Var5qi
}
// GetVar5qiOk returns a tuple with the Var5qi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosRequirement) GetVar5qiOk() (*int32, bool) {
if o == nil || IsNil(o.Var5qi) {
return nil, false
}
return o.Var5qi, true
}
// HasVar5qi returns a boolean if a field has been set.
func (o *QosRequirement) HasVar5qi() bool {
if o != nil && !IsNil(o.Var5qi) {
return true
}
return false
}
// SetVar5qi gets a reference to the given int32 and assigns it to the Var5qi field.
func (o *QosRequirement) SetVar5qi(v int32) {
o.Var5qi = &v
}
// GetGfbrUl returns the GfbrUl field value if set, zero value otherwise.
func (o *QosRequirement) GetGfbrUl() string {
if o == nil || IsNil(o.GfbrUl) {
var ret string
return ret
}
return *o.GfbrUl
}
// GetGfbrUlOk returns a tuple with the GfbrUl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosRequirement) GetGfbrUlOk() (*string, bool) {
if o == nil || IsNil(o.GfbrUl) {
return nil, false
}
return o.GfbrUl, true
}
// HasGfbrUl returns a boolean if a field has been set.
func (o *QosRequirement) HasGfbrUl() bool {
if o != nil && !IsNil(o.GfbrUl) {
return true
}
return false
}
// SetGfbrUl gets a reference to the given string and assigns it to the GfbrUl field.
func (o *QosRequirement) SetGfbrUl(v string) {
o.GfbrUl = &v
}
// GetGfbrDl returns the GfbrDl field value if set, zero value otherwise.
func (o *QosRequirement) GetGfbrDl() string {
if o == nil || IsNil(o.GfbrDl) {
var ret string
return ret
}
return *o.GfbrDl
}
// GetGfbrDlOk returns a tuple with the GfbrDl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosRequirement) GetGfbrDlOk() (*string, bool) {
if o == nil || IsNil(o.GfbrDl) {
return nil, false
}
return o.GfbrDl, true
}
// HasGfbrDl returns a boolean if a field has been set.
func (o *QosRequirement) HasGfbrDl() bool {
if o != nil && !IsNil(o.GfbrDl) {
return true
}
return false
}
// SetGfbrDl gets a reference to the given string and assigns it to the GfbrDl field.
func (o *QosRequirement) SetGfbrDl(v string) {
o.GfbrDl = &v
}
// GetResType returns the ResType field value if set, zero value otherwise.
func (o *QosRequirement) GetResType() QosResourceType {
if o == nil || IsNil(o.ResType) {
var ret QosResourceType
return ret
}
return *o.ResType
}
// GetResTypeOk returns a tuple with the ResType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosRequirement) GetResTypeOk() (*QosResourceType, bool) {
if o == nil || IsNil(o.ResType) {
return nil, false
}
return o.ResType, true
}
// HasResType returns a boolean if a field has been set.
func (o *QosRequirement) HasResType() bool {
if o != nil && !IsNil(o.ResType) {
return true
}
return false
}
// SetResType gets a reference to the given QosResourceType and assigns it to the ResType field.
func (o *QosRequirement) SetResType(v QosResourceType) {
o.ResType = &v
}
// GetPdb returns the Pdb field value if set, zero value otherwise.
func (o *QosRequirement) GetPdb() int32 {
if o == nil || IsNil(o.Pdb) {
var ret int32
return ret
}
return *o.Pdb
}
// GetPdbOk returns a tuple with the Pdb field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosRequirement) GetPdbOk() (*int32, bool) {
if o == nil || IsNil(o.Pdb) {
return nil, false
}
return o.Pdb, true
}
// HasPdb returns a boolean if a field has been set.
func (o *QosRequirement) HasPdb() bool {
if o != nil && !IsNil(o.Pdb) {
return true
}
return false
}
// SetPdb gets a reference to the given int32 and assigns it to the Pdb field.
func (o *QosRequirement) SetPdb(v int32) {
o.Pdb = &v
}
// GetPer returns the Per field value if set, zero value otherwise.
func (o *QosRequirement) GetPer() string {
if o == nil || IsNil(o.Per) {
var ret string
return ret
}
return *o.Per
}
// GetPerOk returns a tuple with the Per field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosRequirement) GetPerOk() (*string, bool) {
if o == nil || IsNil(o.Per) {
return nil, false
}
return o.Per, true
}
// HasPer returns a boolean if a field has been set.
func (o *QosRequirement) HasPer() bool {
if o != nil && !IsNil(o.Per) {
return true
}
return false
}
// SetPer gets a reference to the given string and assigns it to the Per field.
func (o *QosRequirement) SetPer(v string) {
o.Per = &v
}
func (o QosRequirement) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o QosRequirement) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Var5qi) {
toSerialize["5qi"] = o.Var5qi
}
if !IsNil(o.GfbrUl) {
toSerialize["gfbrUl"] = o.GfbrUl
}
if !IsNil(o.GfbrDl) {
toSerialize["gfbrDl"] = o.GfbrDl
}
if !IsNil(o.ResType) {
toSerialize["resType"] = o.ResType
}
if !IsNil(o.Pdb) {
toSerialize["pdb"] = o.Pdb
}
if !IsNil(o.Per) {
toSerialize["per"] = o.Per
}
return toSerialize, nil
}
type NullableQosRequirement struct {
value *QosRequirement
isSet bool
}
func (v NullableQosRequirement) Get() *QosRequirement {
return v.value
}
func (v *NullableQosRequirement) Set(val *QosRequirement) {
v.value = val
v.isSet = true
}
func (v NullableQosRequirement) IsSet() bool {
return v.isSet
}
func (v *NullableQosRequirement) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableQosRequirement(val *QosRequirement) *NullableQosRequirement {
return &NullableQosRequirement{value: val, isSet: true}
}
func (v NullableQosRequirement) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableQosRequirement) 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

搜索帮助