sdk-go-zincsearch/model_meta_http_response.go
2022-09-21 18:18:06 +08:00

116 lines
2.8 KiB
Go

/*
Zinc Search engine API
Zinc Search engine API documents https://docs.zincsearch.com
API version: 0.3.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// MetaHTTPResponse struct for MetaHTTPResponse
type MetaHTTPResponse struct {
Message *string `json:"message,omitempty"`
}
// NewMetaHTTPResponse instantiates a new MetaHTTPResponse 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 NewMetaHTTPResponse() *MetaHTTPResponse {
this := MetaHTTPResponse{}
return &this
}
// NewMetaHTTPResponseWithDefaults instantiates a new MetaHTTPResponse 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 NewMetaHTTPResponseWithDefaults() *MetaHTTPResponse {
this := MetaHTTPResponse{}
return &this
}
// GetMessage returns the Message field value if set, zero value otherwise.
func (o *MetaHTTPResponse) GetMessage() string {
if o == nil || o.Message == nil {
var ret string
return ret
}
return *o.Message
}
// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MetaHTTPResponse) GetMessageOk() (*string, bool) {
if o == nil || o.Message == nil {
return nil, false
}
return o.Message, true
}
// HasMessage returns a boolean if a field has been set.
func (o *MetaHTTPResponse) HasMessage() bool {
if o != nil && o.Message != nil {
return true
}
return false
}
// SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *MetaHTTPResponse) SetMessage(v string) {
o.Message = &v
}
func (o MetaHTTPResponse) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Message != nil {
toSerialize["message"] = o.Message
}
return json.Marshal(toSerialize)
}
type NullableMetaHTTPResponse struct {
value *MetaHTTPResponse
isSet bool
}
func (v NullableMetaHTTPResponse) Get() *MetaHTTPResponse {
return v.value
}
func (v *NullableMetaHTTPResponse) Set(val *MetaHTTPResponse) {
v.value = val
v.isSet = true
}
func (v NullableMetaHTTPResponse) IsSet() bool {
return v.isSet
}
func (v *NullableMetaHTTPResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMetaHTTPResponse(val *MetaHTTPResponse) *NullableMetaHTTPResponse {
return &NullableMetaHTTPResponse{value: val, isSet: true}
}
func (v NullableMetaHTTPResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMetaHTTPResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}