1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_preferred_search.go 16.33 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
NRF NFDiscovery Service
NRF NFDiscovery Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nnrf_NFDiscovery
import (
"encoding/json"
)
// checks if the PreferredSearch type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PreferredSearch{}
// PreferredSearch Contains information on whether the returned NFProfiles match the preferred query parameters
type PreferredSearch struct {
PreferredTaiMatchInd *bool `json:"preferredTaiMatchInd,omitempty"`
PreferredFullPlmnMatchInd *bool `json:"preferredFullPlmnMatchInd,omitempty"`
PreferredApiVersionsMatchInd *bool `json:"preferredApiVersionsMatchInd,omitempty"`
OtherApiVersionsInd *bool `json:"otherApiVersionsInd,omitempty"`
PreferredLocalityMatchInd *bool `json:"preferredLocalityMatchInd,omitempty"`
OtherLocalityInd *bool `json:"otherLocalityInd,omitempty"`
PreferredVendorSpecificFeaturesInd *bool `json:"preferredVendorSpecificFeaturesInd,omitempty"`
PreferredCollocatedNfTypeInd *bool `json:"preferredCollocatedNfTypeInd,omitempty"`
PreferredPgwMatchInd *bool `json:"preferredPgwMatchInd,omitempty"`
PreferredAnalyticsDelaysInd *bool `json:"preferredAnalyticsDelaysInd,omitempty"`
}
// NewPreferredSearch instantiates a new PreferredSearch 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 NewPreferredSearch() *PreferredSearch {
this := PreferredSearch{}
var preferredTaiMatchInd bool = false
this.PreferredTaiMatchInd = &preferredTaiMatchInd
var preferredFullPlmnMatchInd bool = false
this.PreferredFullPlmnMatchInd = &preferredFullPlmnMatchInd
var preferredLocalityMatchInd bool = false
this.PreferredLocalityMatchInd = &preferredLocalityMatchInd
var otherLocalityInd bool = false
this.OtherLocalityInd = &otherLocalityInd
var preferredVendorSpecificFeaturesInd bool = false
this.PreferredVendorSpecificFeaturesInd = &preferredVendorSpecificFeaturesInd
var preferredCollocatedNfTypeInd bool = false
this.PreferredCollocatedNfTypeInd = &preferredCollocatedNfTypeInd
return &this
}
// NewPreferredSearchWithDefaults instantiates a new PreferredSearch 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 NewPreferredSearchWithDefaults() *PreferredSearch {
this := PreferredSearch{}
var preferredTaiMatchInd bool = false
this.PreferredTaiMatchInd = &preferredTaiMatchInd
var preferredFullPlmnMatchInd bool = false
this.PreferredFullPlmnMatchInd = &preferredFullPlmnMatchInd
var preferredLocalityMatchInd bool = false
this.PreferredLocalityMatchInd = &preferredLocalityMatchInd
var otherLocalityInd bool = false
this.OtherLocalityInd = &otherLocalityInd
var preferredVendorSpecificFeaturesInd bool = false
this.PreferredVendorSpecificFeaturesInd = &preferredVendorSpecificFeaturesInd
var preferredCollocatedNfTypeInd bool = false
this.PreferredCollocatedNfTypeInd = &preferredCollocatedNfTypeInd
return &this
}
// GetPreferredTaiMatchInd returns the PreferredTaiMatchInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetPreferredTaiMatchInd() bool {
if o == nil || IsNil(o.PreferredTaiMatchInd) {
var ret bool
return ret
}
return *o.PreferredTaiMatchInd
}
// GetPreferredTaiMatchIndOk returns a tuple with the PreferredTaiMatchInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetPreferredTaiMatchIndOk() (*bool, bool) {
if o == nil || IsNil(o.PreferredTaiMatchInd) {
return nil, false
}
return o.PreferredTaiMatchInd, true
}
// HasPreferredTaiMatchInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasPreferredTaiMatchInd() bool {
if o != nil && !IsNil(o.PreferredTaiMatchInd) {
return true
}
return false
}
// SetPreferredTaiMatchInd gets a reference to the given bool and assigns it to the PreferredTaiMatchInd field.
func (o *PreferredSearch) SetPreferredTaiMatchInd(v bool) {
o.PreferredTaiMatchInd = &v
}
// GetPreferredFullPlmnMatchInd returns the PreferredFullPlmnMatchInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetPreferredFullPlmnMatchInd() bool {
if o == nil || IsNil(o.PreferredFullPlmnMatchInd) {
var ret bool
return ret
}
return *o.PreferredFullPlmnMatchInd
}
// GetPreferredFullPlmnMatchIndOk returns a tuple with the PreferredFullPlmnMatchInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetPreferredFullPlmnMatchIndOk() (*bool, bool) {
if o == nil || IsNil(o.PreferredFullPlmnMatchInd) {
return nil, false
}
return o.PreferredFullPlmnMatchInd, true
}
// HasPreferredFullPlmnMatchInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasPreferredFullPlmnMatchInd() bool {
if o != nil && !IsNil(o.PreferredFullPlmnMatchInd) {
return true
}
return false
}
// SetPreferredFullPlmnMatchInd gets a reference to the given bool and assigns it to the PreferredFullPlmnMatchInd field.
func (o *PreferredSearch) SetPreferredFullPlmnMatchInd(v bool) {
o.PreferredFullPlmnMatchInd = &v
}
// GetPreferredApiVersionsMatchInd returns the PreferredApiVersionsMatchInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetPreferredApiVersionsMatchInd() bool {
if o == nil || IsNil(o.PreferredApiVersionsMatchInd) {
var ret bool
return ret
}
return *o.PreferredApiVersionsMatchInd
}
// GetPreferredApiVersionsMatchIndOk returns a tuple with the PreferredApiVersionsMatchInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetPreferredApiVersionsMatchIndOk() (*bool, bool) {
if o == nil || IsNil(o.PreferredApiVersionsMatchInd) {
return nil, false
}
return o.PreferredApiVersionsMatchInd, true
}
// HasPreferredApiVersionsMatchInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasPreferredApiVersionsMatchInd() bool {
if o != nil && !IsNil(o.PreferredApiVersionsMatchInd) {
return true
}
return false
}
// SetPreferredApiVersionsMatchInd gets a reference to the given bool and assigns it to the PreferredApiVersionsMatchInd field.
func (o *PreferredSearch) SetPreferredApiVersionsMatchInd(v bool) {
o.PreferredApiVersionsMatchInd = &v
}
// GetOtherApiVersionsInd returns the OtherApiVersionsInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetOtherApiVersionsInd() bool {
if o == nil || IsNil(o.OtherApiVersionsInd) {
var ret bool
return ret
}
return *o.OtherApiVersionsInd
}
// GetOtherApiVersionsIndOk returns a tuple with the OtherApiVersionsInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetOtherApiVersionsIndOk() (*bool, bool) {
if o == nil || IsNil(o.OtherApiVersionsInd) {
return nil, false
}
return o.OtherApiVersionsInd, true
}
// HasOtherApiVersionsInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasOtherApiVersionsInd() bool {
if o != nil && !IsNil(o.OtherApiVersionsInd) {
return true
}
return false
}
// SetOtherApiVersionsInd gets a reference to the given bool and assigns it to the OtherApiVersionsInd field.
func (o *PreferredSearch) SetOtherApiVersionsInd(v bool) {
o.OtherApiVersionsInd = &v
}
// GetPreferredLocalityMatchInd returns the PreferredLocalityMatchInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetPreferredLocalityMatchInd() bool {
if o == nil || IsNil(o.PreferredLocalityMatchInd) {
var ret bool
return ret
}
return *o.PreferredLocalityMatchInd
}
// GetPreferredLocalityMatchIndOk returns a tuple with the PreferredLocalityMatchInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetPreferredLocalityMatchIndOk() (*bool, bool) {
if o == nil || IsNil(o.PreferredLocalityMatchInd) {
return nil, false
}
return o.PreferredLocalityMatchInd, true
}
// HasPreferredLocalityMatchInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasPreferredLocalityMatchInd() bool {
if o != nil && !IsNil(o.PreferredLocalityMatchInd) {
return true
}
return false
}
// SetPreferredLocalityMatchInd gets a reference to the given bool and assigns it to the PreferredLocalityMatchInd field.
func (o *PreferredSearch) SetPreferredLocalityMatchInd(v bool) {
o.PreferredLocalityMatchInd = &v
}
// GetOtherLocalityInd returns the OtherLocalityInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetOtherLocalityInd() bool {
if o == nil || IsNil(o.OtherLocalityInd) {
var ret bool
return ret
}
return *o.OtherLocalityInd
}
// GetOtherLocalityIndOk returns a tuple with the OtherLocalityInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetOtherLocalityIndOk() (*bool, bool) {
if o == nil || IsNil(o.OtherLocalityInd) {
return nil, false
}
return o.OtherLocalityInd, true
}
// HasOtherLocalityInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasOtherLocalityInd() bool {
if o != nil && !IsNil(o.OtherLocalityInd) {
return true
}
return false
}
// SetOtherLocalityInd gets a reference to the given bool and assigns it to the OtherLocalityInd field.
func (o *PreferredSearch) SetOtherLocalityInd(v bool) {
o.OtherLocalityInd = &v
}
// GetPreferredVendorSpecificFeaturesInd returns the PreferredVendorSpecificFeaturesInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetPreferredVendorSpecificFeaturesInd() bool {
if o == nil || IsNil(o.PreferredVendorSpecificFeaturesInd) {
var ret bool
return ret
}
return *o.PreferredVendorSpecificFeaturesInd
}
// GetPreferredVendorSpecificFeaturesIndOk returns a tuple with the PreferredVendorSpecificFeaturesInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetPreferredVendorSpecificFeaturesIndOk() (*bool, bool) {
if o == nil || IsNil(o.PreferredVendorSpecificFeaturesInd) {
return nil, false
}
return o.PreferredVendorSpecificFeaturesInd, true
}
// HasPreferredVendorSpecificFeaturesInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasPreferredVendorSpecificFeaturesInd() bool {
if o != nil && !IsNil(o.PreferredVendorSpecificFeaturesInd) {
return true
}
return false
}
// SetPreferredVendorSpecificFeaturesInd gets a reference to the given bool and assigns it to the PreferredVendorSpecificFeaturesInd field.
func (o *PreferredSearch) SetPreferredVendorSpecificFeaturesInd(v bool) {
o.PreferredVendorSpecificFeaturesInd = &v
}
// GetPreferredCollocatedNfTypeInd returns the PreferredCollocatedNfTypeInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetPreferredCollocatedNfTypeInd() bool {
if o == nil || IsNil(o.PreferredCollocatedNfTypeInd) {
var ret bool
return ret
}
return *o.PreferredCollocatedNfTypeInd
}
// GetPreferredCollocatedNfTypeIndOk returns a tuple with the PreferredCollocatedNfTypeInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetPreferredCollocatedNfTypeIndOk() (*bool, bool) {
if o == nil || IsNil(o.PreferredCollocatedNfTypeInd) {
return nil, false
}
return o.PreferredCollocatedNfTypeInd, true
}
// HasPreferredCollocatedNfTypeInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasPreferredCollocatedNfTypeInd() bool {
if o != nil && !IsNil(o.PreferredCollocatedNfTypeInd) {
return true
}
return false
}
// SetPreferredCollocatedNfTypeInd gets a reference to the given bool and assigns it to the PreferredCollocatedNfTypeInd field.
func (o *PreferredSearch) SetPreferredCollocatedNfTypeInd(v bool) {
o.PreferredCollocatedNfTypeInd = &v
}
// GetPreferredPgwMatchInd returns the PreferredPgwMatchInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetPreferredPgwMatchInd() bool {
if o == nil || IsNil(o.PreferredPgwMatchInd) {
var ret bool
return ret
}
return *o.PreferredPgwMatchInd
}
// GetPreferredPgwMatchIndOk returns a tuple with the PreferredPgwMatchInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetPreferredPgwMatchIndOk() (*bool, bool) {
if o == nil || IsNil(o.PreferredPgwMatchInd) {
return nil, false
}
return o.PreferredPgwMatchInd, true
}
// HasPreferredPgwMatchInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasPreferredPgwMatchInd() bool {
if o != nil && !IsNil(o.PreferredPgwMatchInd) {
return true
}
return false
}
// SetPreferredPgwMatchInd gets a reference to the given bool and assigns it to the PreferredPgwMatchInd field.
func (o *PreferredSearch) SetPreferredPgwMatchInd(v bool) {
o.PreferredPgwMatchInd = &v
}
// GetPreferredAnalyticsDelaysInd returns the PreferredAnalyticsDelaysInd field value if set, zero value otherwise.
func (o *PreferredSearch) GetPreferredAnalyticsDelaysInd() bool {
if o == nil || IsNil(o.PreferredAnalyticsDelaysInd) {
var ret bool
return ret
}
return *o.PreferredAnalyticsDelaysInd
}
// GetPreferredAnalyticsDelaysIndOk returns a tuple with the PreferredAnalyticsDelaysInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PreferredSearch) GetPreferredAnalyticsDelaysIndOk() (*bool, bool) {
if o == nil || IsNil(o.PreferredAnalyticsDelaysInd) {
return nil, false
}
return o.PreferredAnalyticsDelaysInd, true
}
// HasPreferredAnalyticsDelaysInd returns a boolean if a field has been set.
func (o *PreferredSearch) HasPreferredAnalyticsDelaysInd() bool {
if o != nil && !IsNil(o.PreferredAnalyticsDelaysInd) {
return true
}
return false
}
// SetPreferredAnalyticsDelaysInd gets a reference to the given bool and assigns it to the PreferredAnalyticsDelaysInd field.
func (o *PreferredSearch) SetPreferredAnalyticsDelaysInd(v bool) {
o.PreferredAnalyticsDelaysInd = &v
}
func (o PreferredSearch) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PreferredSearch) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.PreferredTaiMatchInd) {
toSerialize["preferredTaiMatchInd"] = o.PreferredTaiMatchInd
}
if !IsNil(o.PreferredFullPlmnMatchInd) {
toSerialize["preferredFullPlmnMatchInd"] = o.PreferredFullPlmnMatchInd
}
if !IsNil(o.PreferredApiVersionsMatchInd) {
toSerialize["preferredApiVersionsMatchInd"] = o.PreferredApiVersionsMatchInd
}
if !IsNil(o.OtherApiVersionsInd) {
toSerialize["otherApiVersionsInd"] = o.OtherApiVersionsInd
}
if !IsNil(o.PreferredLocalityMatchInd) {
toSerialize["preferredLocalityMatchInd"] = o.PreferredLocalityMatchInd
}
if !IsNil(o.OtherLocalityInd) {
toSerialize["otherLocalityInd"] = o.OtherLocalityInd
}
if !IsNil(o.PreferredVendorSpecificFeaturesInd) {
toSerialize["preferredVendorSpecificFeaturesInd"] = o.PreferredVendorSpecificFeaturesInd
}
if !IsNil(o.PreferredCollocatedNfTypeInd) {
toSerialize["preferredCollocatedNfTypeInd"] = o.PreferredCollocatedNfTypeInd
}
if !IsNil(o.PreferredPgwMatchInd) {
toSerialize["preferredPgwMatchInd"] = o.PreferredPgwMatchInd
}
if !IsNil(o.PreferredAnalyticsDelaysInd) {
toSerialize["preferredAnalyticsDelaysInd"] = o.PreferredAnalyticsDelaysInd
}
return toSerialize, nil
}
type NullablePreferredSearch struct {
value *PreferredSearch
isSet bool
}
func (v NullablePreferredSearch) Get() *PreferredSearch {
return v.value
}
func (v *NullablePreferredSearch) Set(val *PreferredSearch) {
v.value = val
v.isSet = true
}
func (v NullablePreferredSearch) IsSet() bool {
return v.isSet
}
func (v *NullablePreferredSearch) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePreferredSearch(val *PreferredSearch) *NullablePreferredSearch {
return &NullablePreferredSearch{value: val, isSet: true}
}
func (v NullablePreferredSearch) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePreferredSearch) 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

搜索帮助