Skip to main content
Glama

GameBrain Video Game Discovery

by ddsky
model_search_suggestion_response_results_inner.go10.8 kB
/* GameBrain API GameBrain API API version: 1.0.1 Contact: mail@gamebrain.co */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package gamebrain import ( "encoding/json" ) // checks if the SearchSuggestionResponseResultsInner type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SearchSuggestionResponseResultsInner{} // SearchSuggestionResponseResultsInner struct for SearchSuggestionResponseResultsInner type SearchSuggestionResponseResultsInner struct { Id *int32 `json:"id,omitempty"` Year *float32 `json:"year,omitempty"` Name *string `json:"name,omitempty"` Genre *string `json:"genre,omitempty"` Image *string `json:"image,omitempty"` Link *string `json:"link,omitempty"` Rating *SearchResponseResultsInnerRating `json:"rating,omitempty"` AdultOnly *bool `json:"adult_only,omitempty"` } // NewSearchSuggestionResponseResultsInner instantiates a new SearchSuggestionResponseResultsInner 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 NewSearchSuggestionResponseResultsInner() *SearchSuggestionResponseResultsInner { this := SearchSuggestionResponseResultsInner{} return &this } // NewSearchSuggestionResponseResultsInnerWithDefaults instantiates a new SearchSuggestionResponseResultsInner 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 NewSearchSuggestionResponseResultsInnerWithDefaults() *SearchSuggestionResponseResultsInner { this := SearchSuggestionResponseResultsInner{} return &this } // GetId returns the Id field value if set, zero value otherwise. func (o *SearchSuggestionResponseResultsInner) GetId() int32 { if o == nil || IsNil(o.Id) { var ret int32 return ret } return *o.Id } // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSuggestionResponseResultsInner) GetIdOk() (*int32, bool) { if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true } // HasId returns a boolean if a field has been set. func (o *SearchSuggestionResponseResultsInner) HasId() bool { if o != nil && !IsNil(o.Id) { return true } return false } // SetId gets a reference to the given int32 and assigns it to the Id field. func (o *SearchSuggestionResponseResultsInner) SetId(v int32) { o.Id = &v } // GetYear returns the Year field value if set, zero value otherwise. func (o *SearchSuggestionResponseResultsInner) GetYear() float32 { if o == nil || IsNil(o.Year) { var ret float32 return ret } return *o.Year } // GetYearOk returns a tuple with the Year field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSuggestionResponseResultsInner) GetYearOk() (*float32, bool) { if o == nil || IsNil(o.Year) { return nil, false } return o.Year, true } // HasYear returns a boolean if a field has been set. func (o *SearchSuggestionResponseResultsInner) HasYear() bool { if o != nil && !IsNil(o.Year) { return true } return false } // SetYear gets a reference to the given float32 and assigns it to the Year field. func (o *SearchSuggestionResponseResultsInner) SetYear(v float32) { o.Year = &v } // GetName returns the Name field value if set, zero value otherwise. func (o *SearchSuggestionResponseResultsInner) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret } return *o.Name } // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSuggestionResponseResultsInner) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true } // HasName returns a boolean if a field has been set. func (o *SearchSuggestionResponseResultsInner) HasName() bool { if o != nil && !IsNil(o.Name) { return true } return false } // SetName gets a reference to the given string and assigns it to the Name field. func (o *SearchSuggestionResponseResultsInner) SetName(v string) { o.Name = &v } // GetGenre returns the Genre field value if set, zero value otherwise. func (o *SearchSuggestionResponseResultsInner) GetGenre() string { if o == nil || IsNil(o.Genre) { var ret string return ret } return *o.Genre } // GetGenreOk returns a tuple with the Genre field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSuggestionResponseResultsInner) GetGenreOk() (*string, bool) { if o == nil || IsNil(o.Genre) { return nil, false } return o.Genre, true } // HasGenre returns a boolean if a field has been set. func (o *SearchSuggestionResponseResultsInner) HasGenre() bool { if o != nil && !IsNil(o.Genre) { return true } return false } // SetGenre gets a reference to the given string and assigns it to the Genre field. func (o *SearchSuggestionResponseResultsInner) SetGenre(v string) { o.Genre = &v } // GetImage returns the Image field value if set, zero value otherwise. func (o *SearchSuggestionResponseResultsInner) GetImage() string { if o == nil || IsNil(o.Image) { var ret string return ret } return *o.Image } // GetImageOk returns a tuple with the Image field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSuggestionResponseResultsInner) GetImageOk() (*string, bool) { if o == nil || IsNil(o.Image) { return nil, false } return o.Image, true } // HasImage returns a boolean if a field has been set. func (o *SearchSuggestionResponseResultsInner) HasImage() bool { if o != nil && !IsNil(o.Image) { return true } return false } // SetImage gets a reference to the given string and assigns it to the Image field. func (o *SearchSuggestionResponseResultsInner) SetImage(v string) { o.Image = &v } // GetLink returns the Link field value if set, zero value otherwise. func (o *SearchSuggestionResponseResultsInner) GetLink() string { if o == nil || IsNil(o.Link) { var ret string return ret } return *o.Link } // GetLinkOk returns a tuple with the Link field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSuggestionResponseResultsInner) GetLinkOk() (*string, bool) { if o == nil || IsNil(o.Link) { return nil, false } return o.Link, true } // HasLink returns a boolean if a field has been set. func (o *SearchSuggestionResponseResultsInner) HasLink() bool { if o != nil && !IsNil(o.Link) { return true } return false } // SetLink gets a reference to the given string and assigns it to the Link field. func (o *SearchSuggestionResponseResultsInner) SetLink(v string) { o.Link = &v } // GetRating returns the Rating field value if set, zero value otherwise. func (o *SearchSuggestionResponseResultsInner) GetRating() SearchResponseResultsInnerRating { if o == nil || IsNil(o.Rating) { var ret SearchResponseResultsInnerRating return ret } return *o.Rating } // GetRatingOk returns a tuple with the Rating field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSuggestionResponseResultsInner) GetRatingOk() (*SearchResponseResultsInnerRating, bool) { if o == nil || IsNil(o.Rating) { return nil, false } return o.Rating, true } // HasRating returns a boolean if a field has been set. func (o *SearchSuggestionResponseResultsInner) HasRating() bool { if o != nil && !IsNil(o.Rating) { return true } return false } // SetRating gets a reference to the given SearchResponseResultsInnerRating and assigns it to the Rating field. func (o *SearchSuggestionResponseResultsInner) SetRating(v SearchResponseResultsInnerRating) { o.Rating = &v } // GetAdultOnly returns the AdultOnly field value if set, zero value otherwise. func (o *SearchSuggestionResponseResultsInner) GetAdultOnly() bool { if o == nil || IsNil(o.AdultOnly) { var ret bool return ret } return *o.AdultOnly } // GetAdultOnlyOk returns a tuple with the AdultOnly field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SearchSuggestionResponseResultsInner) GetAdultOnlyOk() (*bool, bool) { if o == nil || IsNil(o.AdultOnly) { return nil, false } return o.AdultOnly, true } // HasAdultOnly returns a boolean if a field has been set. func (o *SearchSuggestionResponseResultsInner) HasAdultOnly() bool { if o != nil && !IsNil(o.AdultOnly) { return true } return false } // SetAdultOnly gets a reference to the given bool and assigns it to the AdultOnly field. func (o *SearchSuggestionResponseResultsInner) SetAdultOnly(v bool) { o.AdultOnly = &v } func (o SearchSuggestionResponseResultsInner) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SearchSuggestionResponseResultsInner) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Id) { toSerialize["id"] = o.Id } if !IsNil(o.Year) { toSerialize["year"] = o.Year } if !IsNil(o.Name) { toSerialize["name"] = o.Name } if !IsNil(o.Genre) { toSerialize["genre"] = o.Genre } if !IsNil(o.Image) { toSerialize["image"] = o.Image } if !IsNil(o.Link) { toSerialize["link"] = o.Link } if !IsNil(o.Rating) { toSerialize["rating"] = o.Rating } if !IsNil(o.AdultOnly) { toSerialize["adult_only"] = o.AdultOnly } return toSerialize, nil } type NullableSearchSuggestionResponseResultsInner struct { value *SearchSuggestionResponseResultsInner isSet bool } func (v NullableSearchSuggestionResponseResultsInner) Get() *SearchSuggestionResponseResultsInner { return v.value } func (v *NullableSearchSuggestionResponseResultsInner) Set(val *SearchSuggestionResponseResultsInner) { v.value = val v.isSet = true } func (v NullableSearchSuggestionResponseResultsInner) IsSet() bool { return v.isSet } func (v *NullableSearchSuggestionResponseResultsInner) Unset() { v.value = nil v.isSet = false } func NewNullableSearchSuggestionResponseResultsInner(val *SearchSuggestionResponseResultsInner) *NullableSearchSuggestionResponseResultsInner { return &NullableSearchSuggestionResponseResultsInner{value: val, isSet: true} } func (v NullableSearchSuggestionResponseResultsInner) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSearchSuggestionResponseResultsInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ddsky/gamebrain-api-clients'

If you have feedback or need assistance with the MCP directory API, please join our Discord server