代码拉取完成,页面将自动刷新
/*
nmbsf-mbs-ud-ingest
API for MBS User Data Ingest Session Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nmbsf_MBSUserDataIngestSession
import (
"encoding/json"
)
// checks if the AppServiceDescription type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AppServiceDescription{}
// AppServiceDescription struct for AppServiceDescription
type AppServiceDescription struct {
// String providing an URI formatted according to RFC 3986.
MediaEntryPointLocator *string `json:"mediaEntryPointLocator,omitempty"`
MimeType *string `json:"mimeType,omitempty"`
IdenticalContents []AppServiceDescriptionIdenticalContentsInner `json:"identicalContents,omitempty"`
AlternativeContents [][]ApplicationService `json:"alternativeContents,omitempty"`
}
// NewAppServiceDescription instantiates a new AppServiceDescription 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 NewAppServiceDescription() *AppServiceDescription {
this := AppServiceDescription{}
return &this
}
// NewAppServiceDescriptionWithDefaults instantiates a new AppServiceDescription 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 NewAppServiceDescriptionWithDefaults() *AppServiceDescription {
this := AppServiceDescription{}
return &this
}
// GetMediaEntryPointLocator returns the MediaEntryPointLocator field value if set, zero value otherwise.
func (o *AppServiceDescription) GetMediaEntryPointLocator() string {
if o == nil || IsNil(o.MediaEntryPointLocator) {
var ret string
return ret
}
return *o.MediaEntryPointLocator
}
// GetMediaEntryPointLocatorOk returns a tuple with the MediaEntryPointLocator field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppServiceDescription) GetMediaEntryPointLocatorOk() (*string, bool) {
if o == nil || IsNil(o.MediaEntryPointLocator) {
return nil, false
}
return o.MediaEntryPointLocator, true
}
// HasMediaEntryPointLocator returns a boolean if a field has been set.
func (o *AppServiceDescription) HasMediaEntryPointLocator() bool {
if o != nil && !IsNil(o.MediaEntryPointLocator) {
return true
}
return false
}
// SetMediaEntryPointLocator gets a reference to the given string and assigns it to the MediaEntryPointLocator field.
func (o *AppServiceDescription) SetMediaEntryPointLocator(v string) {
o.MediaEntryPointLocator = &v
}
// GetMimeType returns the MimeType field value if set, zero value otherwise.
func (o *AppServiceDescription) GetMimeType() string {
if o == nil || IsNil(o.MimeType) {
var ret string
return ret
}
return *o.MimeType
}
// GetMimeTypeOk returns a tuple with the MimeType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppServiceDescription) GetMimeTypeOk() (*string, bool) {
if o == nil || IsNil(o.MimeType) {
return nil, false
}
return o.MimeType, true
}
// HasMimeType returns a boolean if a field has been set.
func (o *AppServiceDescription) HasMimeType() bool {
if o != nil && !IsNil(o.MimeType) {
return true
}
return false
}
// SetMimeType gets a reference to the given string and assigns it to the MimeType field.
func (o *AppServiceDescription) SetMimeType(v string) {
o.MimeType = &v
}
// GetIdenticalContents returns the IdenticalContents field value if set, zero value otherwise.
func (o *AppServiceDescription) GetIdenticalContents() []AppServiceDescriptionIdenticalContentsInner {
if o == nil || IsNil(o.IdenticalContents) {
var ret []AppServiceDescriptionIdenticalContentsInner
return ret
}
return o.IdenticalContents
}
// GetIdenticalContentsOk returns a tuple with the IdenticalContents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppServiceDescription) GetIdenticalContentsOk() ([]AppServiceDescriptionIdenticalContentsInner, bool) {
if o == nil || IsNil(o.IdenticalContents) {
return nil, false
}
return o.IdenticalContents, true
}
// HasIdenticalContents returns a boolean if a field has been set.
func (o *AppServiceDescription) HasIdenticalContents() bool {
if o != nil && !IsNil(o.IdenticalContents) {
return true
}
return false
}
// SetIdenticalContents gets a reference to the given []AppServiceDescriptionIdenticalContentsInner and assigns it to the IdenticalContents field.
func (o *AppServiceDescription) SetIdenticalContents(v []AppServiceDescriptionIdenticalContentsInner) {
o.IdenticalContents = v
}
// GetAlternativeContents returns the AlternativeContents field value if set, zero value otherwise.
func (o *AppServiceDescription) GetAlternativeContents() [][]ApplicationService {
if o == nil || IsNil(o.AlternativeContents) {
var ret [][]ApplicationService
return ret
}
return o.AlternativeContents
}
// GetAlternativeContentsOk returns a tuple with the AlternativeContents field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AppServiceDescription) GetAlternativeContentsOk() ([][]ApplicationService, bool) {
if o == nil || IsNil(o.AlternativeContents) {
return nil, false
}
return o.AlternativeContents, true
}
// HasAlternativeContents returns a boolean if a field has been set.
func (o *AppServiceDescription) HasAlternativeContents() bool {
if o != nil && !IsNil(o.AlternativeContents) {
return true
}
return false
}
// SetAlternativeContents gets a reference to the given [][]ApplicationService and assigns it to the AlternativeContents field.
func (o *AppServiceDescription) SetAlternativeContents(v [][]ApplicationService) {
o.AlternativeContents = v
}
func (o AppServiceDescription) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AppServiceDescription) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.MediaEntryPointLocator) {
toSerialize["mediaEntryPointLocator"] = o.MediaEntryPointLocator
}
if !IsNil(o.MimeType) {
toSerialize["mimeType"] = o.MimeType
}
if !IsNil(o.IdenticalContents) {
toSerialize["identicalContents"] = o.IdenticalContents
}
if !IsNil(o.AlternativeContents) {
toSerialize["alternativeContents"] = o.AlternativeContents
}
return toSerialize, nil
}
type NullableAppServiceDescription struct {
value *AppServiceDescription
isSet bool
}
func (v NullableAppServiceDescription) Get() *AppServiceDescription {
return v.value
}
func (v *NullableAppServiceDescription) Set(val *AppServiceDescription) {
v.value = val
v.isSet = true
}
func (v NullableAppServiceDescription) IsSet() bool {
return v.isSet
}
func (v *NullableAppServiceDescription) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAppServiceDescription(val *AppServiceDescription) *NullableAppServiceDescription {
return &NullableAppServiceDescription{value: val, isSet: true}
}
func (v NullableAppServiceDescription) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAppServiceDescription) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。