/* Model Registry REST API REST API for Model Registry to create and manage ML model metadata API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package openapi import ( "encoding/json" ) // checks if the MetadataValueOneOf3 type satisfies the MappedNullable interface at compile time var _ MappedNullable = &MetadataValueOneOf3{} // MetadataValueOneOf3 struct for MetadataValueOneOf3 type MetadataValueOneOf3 struct { // Base64 encoded bytes for struct value StructValue *string `json:"struct_value,omitempty"` } // NewMetadataValueOneOf3 instantiates a new MetadataValueOneOf3 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 NewMetadataValueOneOf3() *MetadataValueOneOf3 { this := MetadataValueOneOf3{} return &this } // NewMetadataValueOneOf3WithDefaults instantiates a new MetadataValueOneOf3 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 NewMetadataValueOneOf3WithDefaults() *MetadataValueOneOf3 { this := MetadataValueOneOf3{} return &this } // GetStructValue returns the StructValue field value if set, zero value otherwise. func (o *MetadataValueOneOf3) GetStructValue() string { if o == nil || IsNil(o.StructValue) { var ret string return ret } return *o.StructValue } // GetStructValueOk returns a tuple with the StructValue field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *MetadataValueOneOf3) GetStructValueOk() (*string, bool) { if o == nil || IsNil(o.StructValue) { return nil, false } return o.StructValue, true } // HasStructValue returns a boolean if a field has been set. func (o *MetadataValueOneOf3) HasStructValue() bool { if o != nil && !IsNil(o.StructValue) { return true } return false } // SetStructValue gets a reference to the given string and assigns it to the StructValue field. func (o *MetadataValueOneOf3) SetStructValue(v string) { o.StructValue = &v } func (o MetadataValueOneOf3) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o MetadataValueOneOf3) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.StructValue) { toSerialize["struct_value"] = o.StructValue } return toSerialize, nil } type NullableMetadataValueOneOf3 struct { value *MetadataValueOneOf3 isSet bool } func (v NullableMetadataValueOneOf3) Get() *MetadataValueOneOf3 { return v.value } func (v *NullableMetadataValueOneOf3) Set(val *MetadataValueOneOf3) { v.value = val v.isSet = true } func (v NullableMetadataValueOneOf3) IsSet() bool { return v.isSet } func (v *NullableMetadataValueOneOf3) Unset() { v.value = nil v.isSet = false } func NewNullableMetadataValueOneOf3(val *MetadataValueOneOf3) *NullableMetadataValueOneOf3 { return &NullableMetadataValueOneOf3{value: val, isSet: true} } func (v NullableMetadataValueOneOf3) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableMetadataValueOneOf3) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }