199 lines
5.2 KiB
Go
199 lines
5.2 KiB
Go
/*
|
|
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 SchemaSearchListResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaSearchListResp{}
|
|
|
|
// SchemaSearchListResp struct for SchemaSearchListResp
|
|
type SchemaSearchListResp struct {
|
|
Count *int32 `json:"count,omitempty"`
|
|
// extra fields
|
|
Extra map[string]interface{} `json:"extra,omitempty"`
|
|
// search response
|
|
List []SchemaSearchResp `json:"list,omitempty"`
|
|
}
|
|
|
|
// NewSchemaSearchListResp instantiates a new SchemaSearchListResp 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 NewSchemaSearchListResp() *SchemaSearchListResp {
|
|
this := SchemaSearchListResp{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaSearchListRespWithDefaults instantiates a new SchemaSearchListResp 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 NewSchemaSearchListRespWithDefaults() *SchemaSearchListResp {
|
|
this := SchemaSearchListResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetCount returns the Count field value if set, zero value otherwise.
|
|
func (o *SchemaSearchListResp) GetCount() int32 {
|
|
if o == nil || IsNil(o.Count) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Count
|
|
}
|
|
|
|
// GetCountOk returns a tuple with the Count field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSearchListResp) GetCountOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Count) {
|
|
return nil, false
|
|
}
|
|
return o.Count, true
|
|
}
|
|
|
|
// HasCount returns a boolean if a field has been set.
|
|
func (o *SchemaSearchListResp) HasCount() bool {
|
|
if o != nil && !IsNil(o.Count) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCount gets a reference to the given int32 and assigns it to the Count field.
|
|
func (o *SchemaSearchListResp) SetCount(v int32) {
|
|
o.Count = &v
|
|
}
|
|
|
|
// GetExtra returns the Extra field value if set, zero value otherwise.
|
|
func (o *SchemaSearchListResp) GetExtra() map[string]interface{} {
|
|
if o == nil || IsNil(o.Extra) {
|
|
var ret map[string]interface{}
|
|
return ret
|
|
}
|
|
return o.Extra
|
|
}
|
|
|
|
// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSearchListResp) GetExtraOk() (map[string]interface{}, bool) {
|
|
if o == nil || IsNil(o.Extra) {
|
|
return map[string]interface{}{}, false
|
|
}
|
|
return o.Extra, true
|
|
}
|
|
|
|
// HasExtra returns a boolean if a field has been set.
|
|
func (o *SchemaSearchListResp) HasExtra() bool {
|
|
if o != nil && !IsNil(o.Extra) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExtra gets a reference to the given map[string]interface{} and assigns it to the Extra field.
|
|
func (o *SchemaSearchListResp) SetExtra(v map[string]interface{}) {
|
|
o.Extra = v
|
|
}
|
|
|
|
// GetList returns the List field value if set, zero value otherwise.
|
|
func (o *SchemaSearchListResp) GetList() []SchemaSearchResp {
|
|
if o == nil || IsNil(o.List) {
|
|
var ret []SchemaSearchResp
|
|
return ret
|
|
}
|
|
return o.List
|
|
}
|
|
|
|
// GetListOk returns a tuple with the List field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSearchListResp) GetListOk() ([]SchemaSearchResp, bool) {
|
|
if o == nil || IsNil(o.List) {
|
|
return nil, false
|
|
}
|
|
return o.List, true
|
|
}
|
|
|
|
// HasList returns a boolean if a field has been set.
|
|
func (o *SchemaSearchListResp) HasList() bool {
|
|
if o != nil && !IsNil(o.List) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetList gets a reference to the given []SchemaSearchResp and assigns it to the List field.
|
|
func (o *SchemaSearchListResp) SetList(v []SchemaSearchResp) {
|
|
o.List = v
|
|
}
|
|
|
|
func (o SchemaSearchListResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaSearchListResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Count) {
|
|
toSerialize["count"] = o.Count
|
|
}
|
|
if !IsNil(o.Extra) {
|
|
toSerialize["extra"] = o.Extra
|
|
}
|
|
if !IsNil(o.List) {
|
|
toSerialize["list"] = o.List
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaSearchListResp struct {
|
|
value *SchemaSearchListResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaSearchListResp) Get() *SchemaSearchListResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaSearchListResp) Set(val *SchemaSearchListResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaSearchListResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaSearchListResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaSearchListResp(val *SchemaSearchListResp) *NullableSchemaSearchListResp {
|
|
return &NullableSchemaSearchListResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaSearchListResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaSearchListResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|