更新文档内容
This commit is contained in:
@@ -6,7 +6,7 @@ API version: 1.0.0
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
package answer_sdk
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
@@ -17,9 +17,9 @@ var _ MappedNullable = &SchemaSearchResp{}
|
||||
|
||||
// SchemaSearchResp struct for SchemaSearchResp
|
||||
type SchemaSearchResp struct {
|
||||
Object *SchemaSearchRespObject `json:"object,omitempty"`
|
||||
// object_type
|
||||
ObjectType *string `json:"object_type,omitempty"`
|
||||
Count *int32 `json:"count,omitempty"`
|
||||
// search response
|
||||
List []SchemaSearchResult `json:"list,omitempty"`
|
||||
}
|
||||
|
||||
// NewSchemaSearchResp instantiates a new SchemaSearchResp object
|
||||
@@ -39,68 +39,68 @@ func NewSchemaSearchRespWithDefaults() *SchemaSearchResp {
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetObject returns the Object field value if set, zero value otherwise.
|
||||
func (o *SchemaSearchResp) GetObject() SchemaSearchRespObject {
|
||||
if o == nil || IsNil(o.Object) {
|
||||
var ret SchemaSearchRespObject
|
||||
// GetCount returns the Count field value if set, zero value otherwise.
|
||||
func (o *SchemaSearchResp) GetCount() int32 {
|
||||
if o == nil || IsNil(o.Count) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Object
|
||||
return *o.Count
|
||||
}
|
||||
|
||||
// GetObjectOk returns a tuple with the Object field value if set, nil otherwise
|
||||
// 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 *SchemaSearchResp) GetObjectOk() (*SchemaSearchRespObject, bool) {
|
||||
if o == nil || IsNil(o.Object) {
|
||||
func (o *SchemaSearchResp) GetCountOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Count) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Object, true
|
||||
return o.Count, true
|
||||
}
|
||||
|
||||
// HasObject returns a boolean if a field has been set.
|
||||
func (o *SchemaSearchResp) HasObject() bool {
|
||||
if o != nil && !IsNil(o.Object) {
|
||||
// HasCount returns a boolean if a field has been set.
|
||||
func (o *SchemaSearchResp) HasCount() bool {
|
||||
if o != nil && !IsNil(o.Count) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetObject gets a reference to the given SchemaSearchRespObject and assigns it to the Object field.
|
||||
func (o *SchemaSearchResp) SetObject(v SchemaSearchRespObject) {
|
||||
o.Object = &v
|
||||
// SetCount gets a reference to the given int32 and assigns it to the Count field.
|
||||
func (o *SchemaSearchResp) SetCount(v int32) {
|
||||
o.Count = &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
|
||||
// GetList returns the List field value if set, zero value otherwise.
|
||||
func (o *SchemaSearchResp) GetList() []SchemaSearchResult {
|
||||
if o == nil || IsNil(o.List) {
|
||||
var ret []SchemaSearchResult
|
||||
return ret
|
||||
}
|
||||
return *o.ObjectType
|
||||
return o.List
|
||||
}
|
||||
|
||||
// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
|
||||
// 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 *SchemaSearchResp) GetObjectTypeOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.ObjectType) {
|
||||
func (o *SchemaSearchResp) GetListOk() ([]SchemaSearchResult, bool) {
|
||||
if o == nil || IsNil(o.List) {
|
||||
return nil, false
|
||||
}
|
||||
return o.ObjectType, true
|
||||
return o.List, true
|
||||
}
|
||||
|
||||
// HasObjectType returns a boolean if a field has been set.
|
||||
func (o *SchemaSearchResp) HasObjectType() bool {
|
||||
if o != nil && !IsNil(o.ObjectType) {
|
||||
// HasList returns a boolean if a field has been set.
|
||||
func (o *SchemaSearchResp) HasList() bool {
|
||||
if o != nil && !IsNil(o.List) {
|
||||
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
|
||||
// SetList gets a reference to the given []SchemaSearchResult and assigns it to the List field.
|
||||
func (o *SchemaSearchResp) SetList(v []SchemaSearchResult) {
|
||||
o.List = v
|
||||
}
|
||||
|
||||
func (o SchemaSearchResp) MarshalJSON() ([]byte, error) {
|
||||
@@ -113,11 +113,11 @@ func (o SchemaSearchResp) MarshalJSON() ([]byte, error) {
|
||||
|
||||
func (o SchemaSearchResp) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Object) {
|
||||
toSerialize["object"] = o.Object
|
||||
if !IsNil(o.Count) {
|
||||
toSerialize["count"] = o.Count
|
||||
}
|
||||
if !IsNil(o.ObjectType) {
|
||||
toSerialize["object_type"] = o.ObjectType
|
||||
if !IsNil(o.List) {
|
||||
toSerialize["list"] = o.List
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user