188 lines
4.8 KiB
Go
188 lines
4.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"
|
|
)
|
|
|
|
// MetaHTTPResponseDocument struct for MetaHTTPResponseDocument
|
|
type MetaHTTPResponseDocument struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Index *string `json:"index,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
}
|
|
|
|
// NewMetaHTTPResponseDocument instantiates a new MetaHTTPResponseDocument 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 NewMetaHTTPResponseDocument() *MetaHTTPResponseDocument {
|
|
this := MetaHTTPResponseDocument{}
|
|
return &this
|
|
}
|
|
|
|
// NewMetaHTTPResponseDocumentWithDefaults instantiates a new MetaHTTPResponseDocument 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 NewMetaHTTPResponseDocumentWithDefaults() *MetaHTTPResponseDocument {
|
|
this := MetaHTTPResponseDocument{}
|
|
return &this
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *MetaHTTPResponseDocument) GetId() string {
|
|
if o == nil || o.Id == nil {
|
|
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 *MetaHTTPResponseDocument) GetIdOk() (*string, bool) {
|
|
if o == nil || o.Id == nil {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *MetaHTTPResponseDocument) HasId() bool {
|
|
if o != nil && o.Id != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *MetaHTTPResponseDocument) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetIndex returns the Index field value if set, zero value otherwise.
|
|
func (o *MetaHTTPResponseDocument) GetIndex() string {
|
|
if o == nil || o.Index == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Index
|
|
}
|
|
|
|
// GetIndexOk returns a tuple with the Index field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *MetaHTTPResponseDocument) GetIndexOk() (*string, bool) {
|
|
if o == nil || o.Index == nil {
|
|
return nil, false
|
|
}
|
|
return o.Index, true
|
|
}
|
|
|
|
// HasIndex returns a boolean if a field has been set.
|
|
func (o *MetaHTTPResponseDocument) HasIndex() bool {
|
|
if o != nil && o.Index != nil {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIndex gets a reference to the given string and assigns it to the Index field.
|
|
func (o *MetaHTTPResponseDocument) SetIndex(v string) {
|
|
o.Index = &v
|
|
}
|
|
|
|
// GetMessage returns the Message field value if set, zero value otherwise.
|
|
func (o *MetaHTTPResponseDocument) 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 *MetaHTTPResponseDocument) 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 *MetaHTTPResponseDocument) 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 *MetaHTTPResponseDocument) SetMessage(v string) {
|
|
o.Message = &v
|
|
}
|
|
|
|
func (o MetaHTTPResponseDocument) MarshalJSON() ([]byte, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if o.Id != nil {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if o.Index != nil {
|
|
toSerialize["index"] = o.Index
|
|
}
|
|
if o.Message != nil {
|
|
toSerialize["message"] = o.Message
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
type NullableMetaHTTPResponseDocument struct {
|
|
value *MetaHTTPResponseDocument
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableMetaHTTPResponseDocument) Get() *MetaHTTPResponseDocument {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableMetaHTTPResponseDocument) Set(val *MetaHTTPResponseDocument) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableMetaHTTPResponseDocument) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableMetaHTTPResponseDocument) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableMetaHTTPResponseDocument(val *MetaHTTPResponseDocument) *NullableMetaHTTPResponseDocument {
|
|
return &NullableMetaHTTPResponseDocument{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableMetaHTTPResponseDocument) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableMetaHTTPResponseDocument) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|