164 lines
4.1 KiB
Go
164 lines
4.1 KiB
Go
/*
|
|
answer
|
|
|
|
answer api
|
|
|
|
API version: v0.0.1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package openapi
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the SchemaSearchResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaSearchResp{}
|
|
|
|
// SchemaSearchResp struct for SchemaSearchResp
|
|
type SchemaSearchResp struct {
|
|
Object *SchemaSearchObject `json:"object,omitempty"`
|
|
// object_type
|
|
ObjectType *string `json:"object_type,omitempty"`
|
|
}
|
|
|
|
// NewSchemaSearchResp instantiates a new SchemaSearchResp 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 NewSchemaSearchResp() *SchemaSearchResp {
|
|
this := SchemaSearchResp{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaSearchRespWithDefaults instantiates a new SchemaSearchResp 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 NewSchemaSearchRespWithDefaults() *SchemaSearchResp {
|
|
this := SchemaSearchResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetObject returns the Object field value if set, zero value otherwise.
|
|
func (o *SchemaSearchResp) GetObject() SchemaSearchObject {
|
|
if o == nil || IsNil(o.Object) {
|
|
var ret SchemaSearchObject
|
|
return ret
|
|
}
|
|
return *o.Object
|
|
}
|
|
|
|
// GetObjectOk returns a tuple with the Object field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSearchResp) GetObjectOk() (*SchemaSearchObject, bool) {
|
|
if o == nil || IsNil(o.Object) {
|
|
return nil, false
|
|
}
|
|
return o.Object, true
|
|
}
|
|
|
|
// HasObject returns a boolean if a field has been set.
|
|
func (o *SchemaSearchResp) HasObject() bool {
|
|
if o != nil && !IsNil(o.Object) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetObject gets a reference to the given SchemaSearchObject and assigns it to the Object field.
|
|
func (o *SchemaSearchResp) SetObject(v SchemaSearchObject) {
|
|
o.Object = &v
|
|
}
|
|
|
|
// GetObjectType returns the ObjectType field value if set, zero value otherwise.
|
|
func (o *SchemaSearchResp) GetObjectType() string {
|
|
if o == nil || IsNil(o.ObjectType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ObjectType
|
|
}
|
|
|
|
// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSearchResp) GetObjectTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ObjectType) {
|
|
return nil, false
|
|
}
|
|
return o.ObjectType, true
|
|
}
|
|
|
|
// HasObjectType returns a boolean if a field has been set.
|
|
func (o *SchemaSearchResp) HasObjectType() bool {
|
|
if o != nil && !IsNil(o.ObjectType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetObjectType gets a reference to the given string and assigns it to the ObjectType field.
|
|
func (o *SchemaSearchResp) SetObjectType(v string) {
|
|
o.ObjectType = &v
|
|
}
|
|
|
|
func (o SchemaSearchResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaSearchResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Object) {
|
|
toSerialize["object"] = o.Object
|
|
}
|
|
if !IsNil(o.ObjectType) {
|
|
toSerialize["object_type"] = o.ObjectType
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaSearchResp struct {
|
|
value *SchemaSearchResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaSearchResp) Get() *SchemaSearchResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaSearchResp) Set(val *SchemaSearchResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaSearchResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaSearchResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaSearchResp(val *SchemaSearchResp) *NullableSchemaSearchResp {
|
|
return &NullableSchemaSearchResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaSearchResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaSearchResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|