Files
sdk/model_guide_chat_response.go

231 lines
6.3 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the GuideChatResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GuideChatResponse{}
// GuideChatResponse struct for GuideChatResponse
type GuideChatResponse struct {
// Funnel is the org's trailing-window traffic → signups → orders.
Funnel *GuideFunnel `json:"funnel,omitempty"`
// Reply is the coach's answer, grounded only in the quests and funnel below. When no AI plane is reachable it is the deterministic reply naming the top real quest — never silence, never invention.
Reply *string `json:"reply,omitempty"`
// Suggestions are the current candidate quests, ranked best-first.
Suggestions []GuideSuggestion `json:"suggestions,omitempty"`
AdditionalProperties map[string]interface{}
}
type _GuideChatResponse GuideChatResponse
// NewGuideChatResponse instantiates a new GuideChatResponse 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 NewGuideChatResponse() *GuideChatResponse {
this := GuideChatResponse{}
return &this
}
// NewGuideChatResponseWithDefaults instantiates a new GuideChatResponse 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 NewGuideChatResponseWithDefaults() *GuideChatResponse {
this := GuideChatResponse{}
return &this
}
// GetFunnel returns the Funnel field value if set, zero value otherwise.
func (o *GuideChatResponse) GetFunnel() GuideFunnel {
if o == nil || IsNil(o.Funnel) {
var ret GuideFunnel
return ret
}
return *o.Funnel
}
// GetFunnelOk returns a tuple with the Funnel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideChatResponse) GetFunnelOk() (*GuideFunnel, bool) {
if o == nil || IsNil(o.Funnel) {
return nil, false
}
return o.Funnel, true
}
// HasFunnel returns a boolean if a field has been set.
func (o *GuideChatResponse) HasFunnel() bool {
if o != nil && !IsNil(o.Funnel) {
return true
}
return false
}
// SetFunnel gets a reference to the given GuideFunnel and assigns it to the Funnel field.
func (o *GuideChatResponse) SetFunnel(v GuideFunnel) {
o.Funnel = &v
}
// GetReply returns the Reply field value if set, zero value otherwise.
func (o *GuideChatResponse) GetReply() string {
if o == nil || IsNil(o.Reply) {
var ret string
return ret
}
return *o.Reply
}
// GetReplyOk returns a tuple with the Reply field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideChatResponse) GetReplyOk() (*string, bool) {
if o == nil || IsNil(o.Reply) {
return nil, false
}
return o.Reply, true
}
// HasReply returns a boolean if a field has been set.
func (o *GuideChatResponse) HasReply() bool {
if o != nil && !IsNil(o.Reply) {
return true
}
return false
}
// SetReply gets a reference to the given string and assigns it to the Reply field.
func (o *GuideChatResponse) SetReply(v string) {
o.Reply = &v
}
// GetSuggestions returns the Suggestions field value if set, zero value otherwise.
func (o *GuideChatResponse) GetSuggestions() []GuideSuggestion {
if o == nil || IsNil(o.Suggestions) {
var ret []GuideSuggestion
return ret
}
return o.Suggestions
}
// GetSuggestionsOk returns a tuple with the Suggestions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideChatResponse) GetSuggestionsOk() ([]GuideSuggestion, bool) {
if o == nil || IsNil(o.Suggestions) {
return nil, false
}
return o.Suggestions, true
}
// HasSuggestions returns a boolean if a field has been set.
func (o *GuideChatResponse) HasSuggestions() bool {
if o != nil && !IsNil(o.Suggestions) {
return true
}
return false
}
// SetSuggestions gets a reference to the given []GuideSuggestion and assigns it to the Suggestions field.
func (o *GuideChatResponse) SetSuggestions(v []GuideSuggestion) {
o.Suggestions = v
}
func (o GuideChatResponse) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GuideChatResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Funnel) {
toSerialize["funnel"] = o.Funnel
}
if !IsNil(o.Reply) {
toSerialize["reply"] = o.Reply
}
if !IsNil(o.Suggestions) {
toSerialize["suggestions"] = o.Suggestions
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *GuideChatResponse) UnmarshalJSON(data []byte) (err error) {
varGuideChatResponse := _GuideChatResponse{}
err = json.Unmarshal(data, &varGuideChatResponse)
if err != nil {
return err
}
*o = GuideChatResponse(varGuideChatResponse)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "funnel")
delete(additionalProperties, "reply")
delete(additionalProperties, "suggestions")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableGuideChatResponse struct {
value *GuideChatResponse
isSet bool
}
func (v NullableGuideChatResponse) Get() *GuideChatResponse {
return v.value
}
func (v *NullableGuideChatResponse) Set(val *GuideChatResponse) {
v.value = val
v.isSet = true
}
func (v NullableGuideChatResponse) IsSet() bool {
return v.isSet
}
func (v *NullableGuideChatResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGuideChatResponse(val *GuideChatResponse) *NullableGuideChatResponse {
return &NullableGuideChatResponse{value: val, isSet: true}
}
func (v NullableGuideChatResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGuideChatResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}