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