/* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) 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 SchemaGetOtherUserInfoByUsernameResp type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaGetOtherUserInfoByUsernameResp{} // SchemaGetOtherUserInfoByUsernameResp struct for SchemaGetOtherUserInfoByUsernameResp type SchemaGetOtherUserInfoByUsernameResp struct { // answer count AnswerCount *int32 `json:"answer_count,omitempty"` // avatar Avatar *string `json:"avatar,omitempty"` // bio markdown Bio *string `json:"bio,omitempty"` // bio html BioHtml *string `json:"bio_html,omitempty"` // create time CreatedAt *int32 `json:"created_at,omitempty"` // display name DisplayName *string `json:"display_name,omitempty"` // email follow count FollowCount *int32 `json:"follow_count,omitempty"` // user id Id *string `json:"id,omitempty"` // last login date LastLoginDate *int32 `json:"last_login_date,omitempty"` // location Location *string `json:"location,omitempty"` // mobile Mobile *string `json:"mobile,omitempty"` // question count QuestionCount *int32 `json:"question_count,omitempty"` // rank Rank *int32 `json:"rank,omitempty"` Status *string `json:"status,omitempty"` StatusMsg *string `json:"status_msg,omitempty"` // username Username *string `json:"username,omitempty"` // website Website *string `json:"website,omitempty"` } // NewSchemaGetOtherUserInfoByUsernameResp instantiates a new SchemaGetOtherUserInfoByUsernameResp 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 NewSchemaGetOtherUserInfoByUsernameResp() *SchemaGetOtherUserInfoByUsernameResp { this := SchemaGetOtherUserInfoByUsernameResp{} return &this } // NewSchemaGetOtherUserInfoByUsernameRespWithDefaults instantiates a new SchemaGetOtherUserInfoByUsernameResp 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 NewSchemaGetOtherUserInfoByUsernameRespWithDefaults() *SchemaGetOtherUserInfoByUsernameResp { this := SchemaGetOtherUserInfoByUsernameResp{} return &this } // GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetAnswerCount() int32 { if o == nil || IsNil(o.AnswerCount) { var ret int32 return ret } return *o.AnswerCount } // GetAnswerCountOk returns a tuple with the AnswerCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetAnswerCountOk() (*int32, bool) { if o == nil || IsNil(o.AnswerCount) { return nil, false } return o.AnswerCount, true } // HasAnswerCount returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasAnswerCount() bool { if o != nil && !IsNil(o.AnswerCount) { return true } return false } // SetAnswerCount gets a reference to the given int32 and assigns it to the AnswerCount field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetAnswerCount(v int32) { o.AnswerCount = &v } // GetAvatar returns the Avatar field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetAvatar() string { if o == nil || IsNil(o.Avatar) { var ret string return ret } return *o.Avatar } // GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetAvatarOk() (*string, bool) { if o == nil || IsNil(o.Avatar) { return nil, false } return o.Avatar, true } // HasAvatar returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasAvatar() bool { if o != nil && !IsNil(o.Avatar) { return true } return false } // SetAvatar gets a reference to the given string and assigns it to the Avatar field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetAvatar(v string) { o.Avatar = &v } // GetBio returns the Bio field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetBio() string { if o == nil || IsNil(o.Bio) { var ret string return ret } return *o.Bio } // GetBioOk returns a tuple with the Bio field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetBioOk() (*string, bool) { if o == nil || IsNil(o.Bio) { return nil, false } return o.Bio, true } // HasBio returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasBio() bool { if o != nil && !IsNil(o.Bio) { return true } return false } // SetBio gets a reference to the given string and assigns it to the Bio field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetBio(v string) { o.Bio = &v } // GetBioHtml returns the BioHtml field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetBioHtml() string { if o == nil || IsNil(o.BioHtml) { var ret string return ret } return *o.BioHtml } // GetBioHtmlOk returns a tuple with the BioHtml field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetBioHtmlOk() (*string, bool) { if o == nil || IsNil(o.BioHtml) { return nil, false } return o.BioHtml, true } // HasBioHtml returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasBioHtml() bool { if o != nil && !IsNil(o.BioHtml) { return true } return false } // SetBioHtml gets a reference to the given string and assigns it to the BioHtml field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetBioHtml(v string) { o.BioHtml = &v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetCreatedAt() int32 { if o == nil || IsNil(o.CreatedAt) { var ret int32 return ret } return *o.CreatedAt } // GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetCreatedAtOk() (*int32, bool) { if o == nil || IsNil(o.CreatedAt) { return nil, false } return o.CreatedAt, true } // HasCreatedAt returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasCreatedAt() bool { if o != nil && !IsNil(o.CreatedAt) { return true } return false } // SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetCreatedAt(v int32) { o.CreatedAt = &v } // GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetDisplayName() string { if o == nil || IsNil(o.DisplayName) { var ret string return ret } return *o.DisplayName } // GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetDisplayNameOk() (*string, bool) { if o == nil || IsNil(o.DisplayName) { return nil, false } return o.DisplayName, true } // HasDisplayName returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasDisplayName() bool { if o != nil && !IsNil(o.DisplayName) { return true } return false } // SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetDisplayName(v string) { o.DisplayName = &v } // GetFollowCount returns the FollowCount field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetFollowCount() int32 { if o == nil || IsNil(o.FollowCount) { var ret int32 return ret } return *o.FollowCount } // GetFollowCountOk returns a tuple with the FollowCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetFollowCountOk() (*int32, bool) { if o == nil || IsNil(o.FollowCount) { return nil, false } return o.FollowCount, true } // HasFollowCount returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasFollowCount() bool { if o != nil && !IsNil(o.FollowCount) { return true } return false } // SetFollowCount gets a reference to the given int32 and assigns it to the FollowCount field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetFollowCount(v int32) { o.FollowCount = &v } // GetId returns the Id field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetId() string { if o == nil || IsNil(o.Id) { var ret string 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 *SchemaGetOtherUserInfoByUsernameResp) GetIdOk() (*string, 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 *SchemaGetOtherUserInfoByUsernameResp) HasId() bool { if o != nil && !IsNil(o.Id) { return true } return false } // SetId gets a reference to the given string and assigns it to the Id field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetId(v string) { o.Id = &v } // GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetLastLoginDate() int32 { if o == nil || IsNil(o.LastLoginDate) { var ret int32 return ret } return *o.LastLoginDate } // GetLastLoginDateOk returns a tuple with the LastLoginDate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetLastLoginDateOk() (*int32, bool) { if o == nil || IsNil(o.LastLoginDate) { return nil, false } return o.LastLoginDate, true } // HasLastLoginDate returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasLastLoginDate() bool { if o != nil && !IsNil(o.LastLoginDate) { return true } return false } // SetLastLoginDate gets a reference to the given int32 and assigns it to the LastLoginDate field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetLastLoginDate(v int32) { o.LastLoginDate = &v } // GetLocation returns the Location field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetLocation() string { if o == nil || IsNil(o.Location) { var ret string return ret } return *o.Location } // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetLocationOk() (*string, bool) { if o == nil || IsNil(o.Location) { return nil, false } return o.Location, true } // HasLocation returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasLocation() bool { if o != nil && !IsNil(o.Location) { return true } return false } // SetLocation gets a reference to the given string and assigns it to the Location field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetLocation(v string) { o.Location = &v } // GetMobile returns the Mobile field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetMobile() string { if o == nil || IsNil(o.Mobile) { var ret string return ret } return *o.Mobile } // GetMobileOk returns a tuple with the Mobile field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetMobileOk() (*string, bool) { if o == nil || IsNil(o.Mobile) { return nil, false } return o.Mobile, true } // HasMobile returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasMobile() bool { if o != nil && !IsNil(o.Mobile) { return true } return false } // SetMobile gets a reference to the given string and assigns it to the Mobile field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetMobile(v string) { o.Mobile = &v } // GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetQuestionCount() int32 { if o == nil || IsNil(o.QuestionCount) { var ret int32 return ret } return *o.QuestionCount } // GetQuestionCountOk returns a tuple with the QuestionCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetQuestionCountOk() (*int32, bool) { if o == nil || IsNil(o.QuestionCount) { return nil, false } return o.QuestionCount, true } // HasQuestionCount returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasQuestionCount() bool { if o != nil && !IsNil(o.QuestionCount) { return true } return false } // SetQuestionCount gets a reference to the given int32 and assigns it to the QuestionCount field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetQuestionCount(v int32) { o.QuestionCount = &v } // GetRank returns the Rank field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetRank() int32 { if o == nil || IsNil(o.Rank) { var ret int32 return ret } return *o.Rank } // GetRankOk returns a tuple with the Rank field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetRankOk() (*int32, bool) { if o == nil || IsNil(o.Rank) { return nil, false } return o.Rank, true } // HasRank returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasRank() bool { if o != nil && !IsNil(o.Rank) { return true } return false } // SetRank gets a reference to the given int32 and assigns it to the Rank field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetRank(v int32) { o.Rank = &v } // GetStatus returns the Status field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetStatus() string { if o == nil || IsNil(o.Status) { var ret string return ret } return *o.Status } // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetStatusOk() (*string, bool) { if o == nil || IsNil(o.Status) { return nil, false } return o.Status, true } // HasStatus returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasStatus() bool { if o != nil && !IsNil(o.Status) { return true } return false } // SetStatus gets a reference to the given string and assigns it to the Status field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetStatus(v string) { o.Status = &v } // GetStatusMsg returns the StatusMsg field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetStatusMsg() string { if o == nil || IsNil(o.StatusMsg) { var ret string return ret } return *o.StatusMsg } // GetStatusMsgOk returns a tuple with the StatusMsg field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetStatusMsgOk() (*string, bool) { if o == nil || IsNil(o.StatusMsg) { return nil, false } return o.StatusMsg, true } // HasStatusMsg returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasStatusMsg() bool { if o != nil && !IsNil(o.StatusMsg) { return true } return false } // SetStatusMsg gets a reference to the given string and assigns it to the StatusMsg field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetStatusMsg(v string) { o.StatusMsg = &v } // GetUsername returns the Username field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetUsername() string { if o == nil || IsNil(o.Username) { var ret string return ret } return *o.Username } // GetUsernameOk returns a tuple with the Username field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetUsernameOk() (*string, bool) { if o == nil || IsNil(o.Username) { return nil, false } return o.Username, true } // HasUsername returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasUsername() bool { if o != nil && !IsNil(o.Username) { return true } return false } // SetUsername gets a reference to the given string and assigns it to the Username field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetUsername(v string) { o.Username = &v } // GetWebsite returns the Website field value if set, zero value otherwise. func (o *SchemaGetOtherUserInfoByUsernameResp) GetWebsite() string { if o == nil || IsNil(o.Website) { var ret string return ret } return *o.Website } // GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) GetWebsiteOk() (*string, bool) { if o == nil || IsNil(o.Website) { return nil, false } return o.Website, true } // HasWebsite returns a boolean if a field has been set. func (o *SchemaGetOtherUserInfoByUsernameResp) HasWebsite() bool { if o != nil && !IsNil(o.Website) { return true } return false } // SetWebsite gets a reference to the given string and assigns it to the Website field. func (o *SchemaGetOtherUserInfoByUsernameResp) SetWebsite(v string) { o.Website = &v } func (o SchemaGetOtherUserInfoByUsernameResp) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaGetOtherUserInfoByUsernameResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.AnswerCount) { toSerialize["answer_count"] = o.AnswerCount } if !IsNil(o.Avatar) { toSerialize["avatar"] = o.Avatar } if !IsNil(o.Bio) { toSerialize["bio"] = o.Bio } if !IsNil(o.BioHtml) { toSerialize["bio_html"] = o.BioHtml } if !IsNil(o.CreatedAt) { toSerialize["created_at"] = o.CreatedAt } if !IsNil(o.DisplayName) { toSerialize["display_name"] = o.DisplayName } if !IsNil(o.FollowCount) { toSerialize["follow_count"] = o.FollowCount } if !IsNil(o.Id) { toSerialize["id"] = o.Id } if !IsNil(o.LastLoginDate) { toSerialize["last_login_date"] = o.LastLoginDate } if !IsNil(o.Location) { toSerialize["location"] = o.Location } if !IsNil(o.Mobile) { toSerialize["mobile"] = o.Mobile } if !IsNil(o.QuestionCount) { toSerialize["question_count"] = o.QuestionCount } if !IsNil(o.Rank) { toSerialize["rank"] = o.Rank } if !IsNil(o.Status) { toSerialize["status"] = o.Status } if !IsNil(o.StatusMsg) { toSerialize["status_msg"] = o.StatusMsg } if !IsNil(o.Username) { toSerialize["username"] = o.Username } if !IsNil(o.Website) { toSerialize["website"] = o.Website } return toSerialize, nil } type NullableSchemaGetOtherUserInfoByUsernameResp struct { value *SchemaGetOtherUserInfoByUsernameResp isSet bool } func (v NullableSchemaGetOtherUserInfoByUsernameResp) Get() *SchemaGetOtherUserInfoByUsernameResp { return v.value } func (v *NullableSchemaGetOtherUserInfoByUsernameResp) Set(val *SchemaGetOtherUserInfoByUsernameResp) { v.value = val v.isSet = true } func (v NullableSchemaGetOtherUserInfoByUsernameResp) IsSet() bool { return v.isSet } func (v *NullableSchemaGetOtherUserInfoByUsernameResp) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaGetOtherUserInfoByUsernameResp(val *SchemaGetOtherUserInfoByUsernameResp) *NullableSchemaGetOtherUserInfoByUsernameResp { return &NullableSchemaGetOtherUserInfoByUsernameResp{value: val, isSet: true} } func (v NullableSchemaGetOtherUserInfoByUsernameResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaGetOtherUserInfoByUsernameResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }