Files
sdk/model_guide_suggest_response.go

307 lines
8.8 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 GuideSuggestResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GuideSuggestResponse{}
// GuideSuggestResponse struct for GuideSuggestResponse
type GuideSuggestResponse struct {
// Funnel is the org's trailing-window traffic → signups → orders.
Funnel *GuideFunnel `json:"funnel,omitempty"`
// Narrative is the AI's grounded prose over those quests and numbers. Absent when no AI plane is wired or the completion failed — never fabricated.
Narrative *string `json:"narrative,omitempty"`
// Next is the id of the single next step the static journey names — the linear answer the ranked Suggestions refine.
Next *string `json:"next,omitempty"`
// Recommendations are the next-best GTM actions derived from that funnel.
Recommendations []string `json:"recommendations,omitempty"`
// Suggestions are the available, non-terminal quests ranked best-first by how much downstream work each unblocks.
Suggestions []GuideSuggestion `json:"suggestions,omitempty"`
AdditionalProperties map[string]interface{}
}
type _GuideSuggestResponse GuideSuggestResponse
// NewGuideSuggestResponse instantiates a new GuideSuggestResponse 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 NewGuideSuggestResponse() *GuideSuggestResponse {
this := GuideSuggestResponse{}
return &this
}
// NewGuideSuggestResponseWithDefaults instantiates a new GuideSuggestResponse 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 NewGuideSuggestResponseWithDefaults() *GuideSuggestResponse {
this := GuideSuggestResponse{}
return &this
}
// GetFunnel returns the Funnel field value if set, zero value otherwise.
func (o *GuideSuggestResponse) 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 *GuideSuggestResponse) 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 *GuideSuggestResponse) 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 *GuideSuggestResponse) SetFunnel(v GuideFunnel) {
o.Funnel = &v
}
// GetNarrative returns the Narrative field value if set, zero value otherwise.
func (o *GuideSuggestResponse) GetNarrative() string {
if o == nil || IsNil(o.Narrative) {
var ret string
return ret
}
return *o.Narrative
}
// GetNarrativeOk returns a tuple with the Narrative field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideSuggestResponse) GetNarrativeOk() (*string, bool) {
if o == nil || IsNil(o.Narrative) {
return nil, false
}
return o.Narrative, true
}
// HasNarrative returns a boolean if a field has been set.
func (o *GuideSuggestResponse) HasNarrative() bool {
if o != nil && !IsNil(o.Narrative) {
return true
}
return false
}
// SetNarrative gets a reference to the given string and assigns it to the Narrative field.
func (o *GuideSuggestResponse) SetNarrative(v string) {
o.Narrative = &v
}
// GetNext returns the Next field value if set, zero value otherwise.
func (o *GuideSuggestResponse) GetNext() string {
if o == nil || IsNil(o.Next) {
var ret string
return ret
}
return *o.Next
}
// GetNextOk returns a tuple with the Next field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideSuggestResponse) GetNextOk() (*string, bool) {
if o == nil || IsNil(o.Next) {
return nil, false
}
return o.Next, true
}
// HasNext returns a boolean if a field has been set.
func (o *GuideSuggestResponse) HasNext() bool {
if o != nil && !IsNil(o.Next) {
return true
}
return false
}
// SetNext gets a reference to the given string and assigns it to the Next field.
func (o *GuideSuggestResponse) SetNext(v string) {
o.Next = &v
}
// GetRecommendations returns the Recommendations field value if set, zero value otherwise.
func (o *GuideSuggestResponse) GetRecommendations() []string {
if o == nil || IsNil(o.Recommendations) {
var ret []string
return ret
}
return o.Recommendations
}
// GetRecommendationsOk returns a tuple with the Recommendations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GuideSuggestResponse) GetRecommendationsOk() ([]string, bool) {
if o == nil || IsNil(o.Recommendations) {
return nil, false
}
return o.Recommendations, true
}
// HasRecommendations returns a boolean if a field has been set.
func (o *GuideSuggestResponse) HasRecommendations() bool {
if o != nil && !IsNil(o.Recommendations) {
return true
}
return false
}
// SetRecommendations gets a reference to the given []string and assigns it to the Recommendations field.
func (o *GuideSuggestResponse) SetRecommendations(v []string) {
o.Recommendations = v
}
// GetSuggestions returns the Suggestions field value if set, zero value otherwise.
func (o *GuideSuggestResponse) 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 *GuideSuggestResponse) 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 *GuideSuggestResponse) 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 *GuideSuggestResponse) SetSuggestions(v []GuideSuggestion) {
o.Suggestions = v
}
func (o GuideSuggestResponse) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GuideSuggestResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Funnel) {
toSerialize["funnel"] = o.Funnel
}
if !IsNil(o.Narrative) {
toSerialize["narrative"] = o.Narrative
}
if !IsNil(o.Next) {
toSerialize["next"] = o.Next
}
if !IsNil(o.Recommendations) {
toSerialize["recommendations"] = o.Recommendations
}
if !IsNil(o.Suggestions) {
toSerialize["suggestions"] = o.Suggestions
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *GuideSuggestResponse) UnmarshalJSON(data []byte) (err error) {
varGuideSuggestResponse := _GuideSuggestResponse{}
err = json.Unmarshal(data, &varGuideSuggestResponse)
if err != nil {
return err
}
*o = GuideSuggestResponse(varGuideSuggestResponse)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "funnel")
delete(additionalProperties, "narrative")
delete(additionalProperties, "next")
delete(additionalProperties, "recommendations")
delete(additionalProperties, "suggestions")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableGuideSuggestResponse struct {
value *GuideSuggestResponse
isSet bool
}
func (v NullableGuideSuggestResponse) Get() *GuideSuggestResponse {
return v.value
}
func (v *NullableGuideSuggestResponse) Set(val *GuideSuggestResponse) {
v.value = val
v.isSet = true
}
func (v NullableGuideSuggestResponse) IsSet() bool {
return v.isSet
}
func (v *NullableGuideSuggestResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGuideSuggestResponse(val *GuideSuggestResponse) *NullableGuideSuggestResponse {
return &NullableGuideSuggestResponse{value: val, isSet: true}
}
func (v NullableGuideSuggestResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGuideSuggestResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}