Files
sdk/model_store.go

1893 lines
52 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 Store type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Store{}
// Store struct for Store
type Store struct {
AgentProvider *string `json:"agentProvider,omitempty"`
Avatar *string `json:"avatar,omitempty"`
BuiltinTools []string `json:"builtinTools,omitempty"`
ChatCount *int32 `json:"chatCount,omitempty"`
ChildModelProviders []string `json:"childModelProviders,omitempty"`
ChildStores []string `json:"childStores,omitempty"`
CreatedTime *string `json:"createdTime,omitempty"`
DisableFileUpload *bool `json:"disableFileUpload,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
EmbeddingProvider *string `json:"embeddingProvider,omitempty"`
EnableTtsStreaming *bool `json:"enableTtsStreaming,omitempty"`
ExampleQuestions []ExampleQuestion `json:"exampleQuestions,omitempty"`
FaviconUrl *string `json:"faviconUrl,omitempty"`
FileTree *TreeFile `json:"fileTree,omitempty"`
FooterHtml *string `json:"footerHtml,omitempty"`
ForbiddenWords []string `json:"forbiddenWords,omitempty"`
Frequency *int32 `json:"frequency,omitempty"`
HideThinking *bool `json:"hideThinking,omitempty"`
HtmlTitle *string `json:"htmlTitle,omitempty"`
ImageProvider *string `json:"imageProvider,omitempty"`
IsDefault *bool `json:"isDefault,omitempty"`
KnowledgeCount *int32 `json:"knowledgeCount,omitempty"`
LimitMinutes *int32 `json:"limitMinutes,omitempty"`
LogoUrl *string `json:"logoUrl,omitempty"`
MemoryLimit *int32 `json:"memoryLimit,omitempty"`
MessageCount *int32 `json:"messageCount,omitempty"`
ModelProvider *string `json:"modelProvider,omitempty"`
Name *string `json:"name,omitempty"`
NavItems []string `json:"navItems,omitempty"`
Owner *string `json:"owner,omitempty"`
Prompt *string `json:"prompt,omitempty"`
PropertiesMap map[string]Properties `json:"propertiesMap,omitempty"`
SearchProvider *string `json:"searchProvider,omitempty"`
ShowAutoRead *bool `json:"showAutoRead,omitempty"`
SpeechToTextProvider *string `json:"speechToTextProvider,omitempty"`
SplitProvider *string `json:"splitProvider,omitempty"`
State *string `json:"state,omitempty"`
StorageProvider *string `json:"storageProvider,omitempty"`
StorageSubpath *string `json:"storageSubpath,omitempty"`
SuggestionCount *int32 `json:"suggestionCount,omitempty"`
TextToSpeechProvider *string `json:"textToSpeechProvider,omitempty"`
ThemeColor *string `json:"themeColor,omitempty"`
Title *string `json:"title,omitempty"`
VectorStoreId *string `json:"vectorStoreId,omitempty"`
VectorStores []string `json:"vectorStores,omitempty"`
Welcome *string `json:"welcome,omitempty"`
WelcomeText *string `json:"welcomeText,omitempty"`
WelcomeTitle *string `json:"welcomeTitle,omitempty"`
AdditionalProperties map[string]interface{}
}
type _Store Store
// NewStore instantiates a new Store 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 NewStore() *Store {
this := Store{}
return &this
}
// NewStoreWithDefaults instantiates a new Store 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 NewStoreWithDefaults() *Store {
this := Store{}
return &this
}
// GetAgentProvider returns the AgentProvider field value if set, zero value otherwise.
func (o *Store) GetAgentProvider() string {
if o == nil || IsNil(o.AgentProvider) {
var ret string
return ret
}
return *o.AgentProvider
}
// GetAgentProviderOk returns a tuple with the AgentProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetAgentProviderOk() (*string, bool) {
if o == nil || IsNil(o.AgentProvider) {
return nil, false
}
return o.AgentProvider, true
}
// HasAgentProvider returns a boolean if a field has been set.
func (o *Store) HasAgentProvider() bool {
if o != nil && !IsNil(o.AgentProvider) {
return true
}
return false
}
// SetAgentProvider gets a reference to the given string and assigns it to the AgentProvider field.
func (o *Store) SetAgentProvider(v string) {
o.AgentProvider = &v
}
// GetAvatar returns the Avatar field value if set, zero value otherwise.
func (o *Store) GetAvatar() string {
if o == nil || IsNil(o.Avatar) {
var ret string
return ret
}
return *o.Avatar
}
// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetAvatarOk() (*string, bool) {
if o == nil || IsNil(o.Avatar) {
return nil, false
}
return o.Avatar, true
}
// HasAvatar returns a boolean if a field has been set.
func (o *Store) HasAvatar() bool {
if o != nil && !IsNil(o.Avatar) {
return true
}
return false
}
// SetAvatar gets a reference to the given string and assigns it to the Avatar field.
func (o *Store) SetAvatar(v string) {
o.Avatar = &v
}
// GetBuiltinTools returns the BuiltinTools field value if set, zero value otherwise.
func (o *Store) GetBuiltinTools() []string {
if o == nil || IsNil(o.BuiltinTools) {
var ret []string
return ret
}
return o.BuiltinTools
}
// GetBuiltinToolsOk returns a tuple with the BuiltinTools field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetBuiltinToolsOk() ([]string, bool) {
if o == nil || IsNil(o.BuiltinTools) {
return nil, false
}
return o.BuiltinTools, true
}
// HasBuiltinTools returns a boolean if a field has been set.
func (o *Store) HasBuiltinTools() bool {
if o != nil && !IsNil(o.BuiltinTools) {
return true
}
return false
}
// SetBuiltinTools gets a reference to the given []string and assigns it to the BuiltinTools field.
func (o *Store) SetBuiltinTools(v []string) {
o.BuiltinTools = v
}
// GetChatCount returns the ChatCount field value if set, zero value otherwise.
func (o *Store) GetChatCount() int32 {
if o == nil || IsNil(o.ChatCount) {
var ret int32
return ret
}
return *o.ChatCount
}
// GetChatCountOk returns a tuple with the ChatCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetChatCountOk() (*int32, bool) {
if o == nil || IsNil(o.ChatCount) {
return nil, false
}
return o.ChatCount, true
}
// HasChatCount returns a boolean if a field has been set.
func (o *Store) HasChatCount() bool {
if o != nil && !IsNil(o.ChatCount) {
return true
}
return false
}
// SetChatCount gets a reference to the given int32 and assigns it to the ChatCount field.
func (o *Store) SetChatCount(v int32) {
o.ChatCount = &v
}
// GetChildModelProviders returns the ChildModelProviders field value if set, zero value otherwise.
func (o *Store) GetChildModelProviders() []string {
if o == nil || IsNil(o.ChildModelProviders) {
var ret []string
return ret
}
return o.ChildModelProviders
}
// GetChildModelProvidersOk returns a tuple with the ChildModelProviders field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetChildModelProvidersOk() ([]string, bool) {
if o == nil || IsNil(o.ChildModelProviders) {
return nil, false
}
return o.ChildModelProviders, true
}
// HasChildModelProviders returns a boolean if a field has been set.
func (o *Store) HasChildModelProviders() bool {
if o != nil && !IsNil(o.ChildModelProviders) {
return true
}
return false
}
// SetChildModelProviders gets a reference to the given []string and assigns it to the ChildModelProviders field.
func (o *Store) SetChildModelProviders(v []string) {
o.ChildModelProviders = v
}
// GetChildStores returns the ChildStores field value if set, zero value otherwise.
func (o *Store) GetChildStores() []string {
if o == nil || IsNil(o.ChildStores) {
var ret []string
return ret
}
return o.ChildStores
}
// GetChildStoresOk returns a tuple with the ChildStores field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetChildStoresOk() ([]string, bool) {
if o == nil || IsNil(o.ChildStores) {
return nil, false
}
return o.ChildStores, true
}
// HasChildStores returns a boolean if a field has been set.
func (o *Store) HasChildStores() bool {
if o != nil && !IsNil(o.ChildStores) {
return true
}
return false
}
// SetChildStores gets a reference to the given []string and assigns it to the ChildStores field.
func (o *Store) SetChildStores(v []string) {
o.ChildStores = v
}
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
func (o *Store) GetCreatedTime() string {
if o == nil || IsNil(o.CreatedTime) {
var ret string
return ret
}
return *o.CreatedTime
}
// GetCreatedTimeOk returns a tuple with the CreatedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetCreatedTimeOk() (*string, bool) {
if o == nil || IsNil(o.CreatedTime) {
return nil, false
}
return o.CreatedTime, true
}
// HasCreatedTime returns a boolean if a field has been set.
func (o *Store) HasCreatedTime() bool {
if o != nil && !IsNil(o.CreatedTime) {
return true
}
return false
}
// SetCreatedTime gets a reference to the given string and assigns it to the CreatedTime field.
func (o *Store) SetCreatedTime(v string) {
o.CreatedTime = &v
}
// GetDisableFileUpload returns the DisableFileUpload field value if set, zero value otherwise.
func (o *Store) GetDisableFileUpload() bool {
if o == nil || IsNil(o.DisableFileUpload) {
var ret bool
return ret
}
return *o.DisableFileUpload
}
// GetDisableFileUploadOk returns a tuple with the DisableFileUpload field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetDisableFileUploadOk() (*bool, bool) {
if o == nil || IsNil(o.DisableFileUpload) {
return nil, false
}
return o.DisableFileUpload, true
}
// HasDisableFileUpload returns a boolean if a field has been set.
func (o *Store) HasDisableFileUpload() bool {
if o != nil && !IsNil(o.DisableFileUpload) {
return true
}
return false
}
// SetDisableFileUpload gets a reference to the given bool and assigns it to the DisableFileUpload field.
func (o *Store) SetDisableFileUpload(v bool) {
o.DisableFileUpload = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *Store) GetDisplayName() string {
if o == nil || IsNil(o.DisplayName) {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetDisplayNameOk() (*string, bool) {
if o == nil || IsNil(o.DisplayName) {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *Store) HasDisplayName() bool {
if o != nil && !IsNil(o.DisplayName) {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *Store) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetEmbeddingProvider returns the EmbeddingProvider field value if set, zero value otherwise.
func (o *Store) GetEmbeddingProvider() string {
if o == nil || IsNil(o.EmbeddingProvider) {
var ret string
return ret
}
return *o.EmbeddingProvider
}
// GetEmbeddingProviderOk returns a tuple with the EmbeddingProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetEmbeddingProviderOk() (*string, bool) {
if o == nil || IsNil(o.EmbeddingProvider) {
return nil, false
}
return o.EmbeddingProvider, true
}
// HasEmbeddingProvider returns a boolean if a field has been set.
func (o *Store) HasEmbeddingProvider() bool {
if o != nil && !IsNil(o.EmbeddingProvider) {
return true
}
return false
}
// SetEmbeddingProvider gets a reference to the given string and assigns it to the EmbeddingProvider field.
func (o *Store) SetEmbeddingProvider(v string) {
o.EmbeddingProvider = &v
}
// GetEnableTtsStreaming returns the EnableTtsStreaming field value if set, zero value otherwise.
func (o *Store) GetEnableTtsStreaming() bool {
if o == nil || IsNil(o.EnableTtsStreaming) {
var ret bool
return ret
}
return *o.EnableTtsStreaming
}
// GetEnableTtsStreamingOk returns a tuple with the EnableTtsStreaming field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetEnableTtsStreamingOk() (*bool, bool) {
if o == nil || IsNil(o.EnableTtsStreaming) {
return nil, false
}
return o.EnableTtsStreaming, true
}
// HasEnableTtsStreaming returns a boolean if a field has been set.
func (o *Store) HasEnableTtsStreaming() bool {
if o != nil && !IsNil(o.EnableTtsStreaming) {
return true
}
return false
}
// SetEnableTtsStreaming gets a reference to the given bool and assigns it to the EnableTtsStreaming field.
func (o *Store) SetEnableTtsStreaming(v bool) {
o.EnableTtsStreaming = &v
}
// GetExampleQuestions returns the ExampleQuestions field value if set, zero value otherwise.
func (o *Store) GetExampleQuestions() []ExampleQuestion {
if o == nil || IsNil(o.ExampleQuestions) {
var ret []ExampleQuestion
return ret
}
return o.ExampleQuestions
}
// GetExampleQuestionsOk returns a tuple with the ExampleQuestions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetExampleQuestionsOk() ([]ExampleQuestion, bool) {
if o == nil || IsNil(o.ExampleQuestions) {
return nil, false
}
return o.ExampleQuestions, true
}
// HasExampleQuestions returns a boolean if a field has been set.
func (o *Store) HasExampleQuestions() bool {
if o != nil && !IsNil(o.ExampleQuestions) {
return true
}
return false
}
// SetExampleQuestions gets a reference to the given []ExampleQuestion and assigns it to the ExampleQuestions field.
func (o *Store) SetExampleQuestions(v []ExampleQuestion) {
o.ExampleQuestions = v
}
// GetFaviconUrl returns the FaviconUrl field value if set, zero value otherwise.
func (o *Store) GetFaviconUrl() string {
if o == nil || IsNil(o.FaviconUrl) {
var ret string
return ret
}
return *o.FaviconUrl
}
// GetFaviconUrlOk returns a tuple with the FaviconUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetFaviconUrlOk() (*string, bool) {
if o == nil || IsNil(o.FaviconUrl) {
return nil, false
}
return o.FaviconUrl, true
}
// HasFaviconUrl returns a boolean if a field has been set.
func (o *Store) HasFaviconUrl() bool {
if o != nil && !IsNil(o.FaviconUrl) {
return true
}
return false
}
// SetFaviconUrl gets a reference to the given string and assigns it to the FaviconUrl field.
func (o *Store) SetFaviconUrl(v string) {
o.FaviconUrl = &v
}
// GetFileTree returns the FileTree field value if set, zero value otherwise.
func (o *Store) GetFileTree() TreeFile {
if o == nil || IsNil(o.FileTree) {
var ret TreeFile
return ret
}
return *o.FileTree
}
// GetFileTreeOk returns a tuple with the FileTree field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetFileTreeOk() (*TreeFile, bool) {
if o == nil || IsNil(o.FileTree) {
return nil, false
}
return o.FileTree, true
}
// HasFileTree returns a boolean if a field has been set.
func (o *Store) HasFileTree() bool {
if o != nil && !IsNil(o.FileTree) {
return true
}
return false
}
// SetFileTree gets a reference to the given TreeFile and assigns it to the FileTree field.
func (o *Store) SetFileTree(v TreeFile) {
o.FileTree = &v
}
// GetFooterHtml returns the FooterHtml field value if set, zero value otherwise.
func (o *Store) GetFooterHtml() string {
if o == nil || IsNil(o.FooterHtml) {
var ret string
return ret
}
return *o.FooterHtml
}
// GetFooterHtmlOk returns a tuple with the FooterHtml field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetFooterHtmlOk() (*string, bool) {
if o == nil || IsNil(o.FooterHtml) {
return nil, false
}
return o.FooterHtml, true
}
// HasFooterHtml returns a boolean if a field has been set.
func (o *Store) HasFooterHtml() bool {
if o != nil && !IsNil(o.FooterHtml) {
return true
}
return false
}
// SetFooterHtml gets a reference to the given string and assigns it to the FooterHtml field.
func (o *Store) SetFooterHtml(v string) {
o.FooterHtml = &v
}
// GetForbiddenWords returns the ForbiddenWords field value if set, zero value otherwise.
func (o *Store) GetForbiddenWords() []string {
if o == nil || IsNil(o.ForbiddenWords) {
var ret []string
return ret
}
return o.ForbiddenWords
}
// GetForbiddenWordsOk returns a tuple with the ForbiddenWords field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetForbiddenWordsOk() ([]string, bool) {
if o == nil || IsNil(o.ForbiddenWords) {
return nil, false
}
return o.ForbiddenWords, true
}
// HasForbiddenWords returns a boolean if a field has been set.
func (o *Store) HasForbiddenWords() bool {
if o != nil && !IsNil(o.ForbiddenWords) {
return true
}
return false
}
// SetForbiddenWords gets a reference to the given []string and assigns it to the ForbiddenWords field.
func (o *Store) SetForbiddenWords(v []string) {
o.ForbiddenWords = v
}
// GetFrequency returns the Frequency field value if set, zero value otherwise.
func (o *Store) GetFrequency() int32 {
if o == nil || IsNil(o.Frequency) {
var ret int32
return ret
}
return *o.Frequency
}
// GetFrequencyOk returns a tuple with the Frequency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetFrequencyOk() (*int32, bool) {
if o == nil || IsNil(o.Frequency) {
return nil, false
}
return o.Frequency, true
}
// HasFrequency returns a boolean if a field has been set.
func (o *Store) HasFrequency() bool {
if o != nil && !IsNil(o.Frequency) {
return true
}
return false
}
// SetFrequency gets a reference to the given int32 and assigns it to the Frequency field.
func (o *Store) SetFrequency(v int32) {
o.Frequency = &v
}
// GetHideThinking returns the HideThinking field value if set, zero value otherwise.
func (o *Store) GetHideThinking() bool {
if o == nil || IsNil(o.HideThinking) {
var ret bool
return ret
}
return *o.HideThinking
}
// GetHideThinkingOk returns a tuple with the HideThinking field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetHideThinkingOk() (*bool, bool) {
if o == nil || IsNil(o.HideThinking) {
return nil, false
}
return o.HideThinking, true
}
// HasHideThinking returns a boolean if a field has been set.
func (o *Store) HasHideThinking() bool {
if o != nil && !IsNil(o.HideThinking) {
return true
}
return false
}
// SetHideThinking gets a reference to the given bool and assigns it to the HideThinking field.
func (o *Store) SetHideThinking(v bool) {
o.HideThinking = &v
}
// GetHtmlTitle returns the HtmlTitle field value if set, zero value otherwise.
func (o *Store) GetHtmlTitle() string {
if o == nil || IsNil(o.HtmlTitle) {
var ret string
return ret
}
return *o.HtmlTitle
}
// GetHtmlTitleOk returns a tuple with the HtmlTitle field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetHtmlTitleOk() (*string, bool) {
if o == nil || IsNil(o.HtmlTitle) {
return nil, false
}
return o.HtmlTitle, true
}
// HasHtmlTitle returns a boolean if a field has been set.
func (o *Store) HasHtmlTitle() bool {
if o != nil && !IsNil(o.HtmlTitle) {
return true
}
return false
}
// SetHtmlTitle gets a reference to the given string and assigns it to the HtmlTitle field.
func (o *Store) SetHtmlTitle(v string) {
o.HtmlTitle = &v
}
// GetImageProvider returns the ImageProvider field value if set, zero value otherwise.
func (o *Store) GetImageProvider() string {
if o == nil || IsNil(o.ImageProvider) {
var ret string
return ret
}
return *o.ImageProvider
}
// GetImageProviderOk returns a tuple with the ImageProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetImageProviderOk() (*string, bool) {
if o == nil || IsNil(o.ImageProvider) {
return nil, false
}
return o.ImageProvider, true
}
// HasImageProvider returns a boolean if a field has been set.
func (o *Store) HasImageProvider() bool {
if o != nil && !IsNil(o.ImageProvider) {
return true
}
return false
}
// SetImageProvider gets a reference to the given string and assigns it to the ImageProvider field.
func (o *Store) SetImageProvider(v string) {
o.ImageProvider = &v
}
// GetIsDefault returns the IsDefault field value if set, zero value otherwise.
func (o *Store) GetIsDefault() bool {
if o == nil || IsNil(o.IsDefault) {
var ret bool
return ret
}
return *o.IsDefault
}
// GetIsDefaultOk returns a tuple with the IsDefault field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetIsDefaultOk() (*bool, bool) {
if o == nil || IsNil(o.IsDefault) {
return nil, false
}
return o.IsDefault, true
}
// HasIsDefault returns a boolean if a field has been set.
func (o *Store) HasIsDefault() bool {
if o != nil && !IsNil(o.IsDefault) {
return true
}
return false
}
// SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.
func (o *Store) SetIsDefault(v bool) {
o.IsDefault = &v
}
// GetKnowledgeCount returns the KnowledgeCount field value if set, zero value otherwise.
func (o *Store) GetKnowledgeCount() int32 {
if o == nil || IsNil(o.KnowledgeCount) {
var ret int32
return ret
}
return *o.KnowledgeCount
}
// GetKnowledgeCountOk returns a tuple with the KnowledgeCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetKnowledgeCountOk() (*int32, bool) {
if o == nil || IsNil(o.KnowledgeCount) {
return nil, false
}
return o.KnowledgeCount, true
}
// HasKnowledgeCount returns a boolean if a field has been set.
func (o *Store) HasKnowledgeCount() bool {
if o != nil && !IsNil(o.KnowledgeCount) {
return true
}
return false
}
// SetKnowledgeCount gets a reference to the given int32 and assigns it to the KnowledgeCount field.
func (o *Store) SetKnowledgeCount(v int32) {
o.KnowledgeCount = &v
}
// GetLimitMinutes returns the LimitMinutes field value if set, zero value otherwise.
func (o *Store) GetLimitMinutes() int32 {
if o == nil || IsNil(o.LimitMinutes) {
var ret int32
return ret
}
return *o.LimitMinutes
}
// GetLimitMinutesOk returns a tuple with the LimitMinutes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetLimitMinutesOk() (*int32, bool) {
if o == nil || IsNil(o.LimitMinutes) {
return nil, false
}
return o.LimitMinutes, true
}
// HasLimitMinutes returns a boolean if a field has been set.
func (o *Store) HasLimitMinutes() bool {
if o != nil && !IsNil(o.LimitMinutes) {
return true
}
return false
}
// SetLimitMinutes gets a reference to the given int32 and assigns it to the LimitMinutes field.
func (o *Store) SetLimitMinutes(v int32) {
o.LimitMinutes = &v
}
// GetLogoUrl returns the LogoUrl field value if set, zero value otherwise.
func (o *Store) GetLogoUrl() string {
if o == nil || IsNil(o.LogoUrl) {
var ret string
return ret
}
return *o.LogoUrl
}
// GetLogoUrlOk returns a tuple with the LogoUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetLogoUrlOk() (*string, bool) {
if o == nil || IsNil(o.LogoUrl) {
return nil, false
}
return o.LogoUrl, true
}
// HasLogoUrl returns a boolean if a field has been set.
func (o *Store) HasLogoUrl() bool {
if o != nil && !IsNil(o.LogoUrl) {
return true
}
return false
}
// SetLogoUrl gets a reference to the given string and assigns it to the LogoUrl field.
func (o *Store) SetLogoUrl(v string) {
o.LogoUrl = &v
}
// GetMemoryLimit returns the MemoryLimit field value if set, zero value otherwise.
func (o *Store) GetMemoryLimit() int32 {
if o == nil || IsNil(o.MemoryLimit) {
var ret int32
return ret
}
return *o.MemoryLimit
}
// GetMemoryLimitOk returns a tuple with the MemoryLimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetMemoryLimitOk() (*int32, bool) {
if o == nil || IsNil(o.MemoryLimit) {
return nil, false
}
return o.MemoryLimit, true
}
// HasMemoryLimit returns a boolean if a field has been set.
func (o *Store) HasMemoryLimit() bool {
if o != nil && !IsNil(o.MemoryLimit) {
return true
}
return false
}
// SetMemoryLimit gets a reference to the given int32 and assigns it to the MemoryLimit field.
func (o *Store) SetMemoryLimit(v int32) {
o.MemoryLimit = &v
}
// GetMessageCount returns the MessageCount field value if set, zero value otherwise.
func (o *Store) GetMessageCount() int32 {
if o == nil || IsNil(o.MessageCount) {
var ret int32
return ret
}
return *o.MessageCount
}
// GetMessageCountOk returns a tuple with the MessageCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetMessageCountOk() (*int32, bool) {
if o == nil || IsNil(o.MessageCount) {
return nil, false
}
return o.MessageCount, true
}
// HasMessageCount returns a boolean if a field has been set.
func (o *Store) HasMessageCount() bool {
if o != nil && !IsNil(o.MessageCount) {
return true
}
return false
}
// SetMessageCount gets a reference to the given int32 and assigns it to the MessageCount field.
func (o *Store) SetMessageCount(v int32) {
o.MessageCount = &v
}
// GetModelProvider returns the ModelProvider field value if set, zero value otherwise.
func (o *Store) GetModelProvider() string {
if o == nil || IsNil(o.ModelProvider) {
var ret string
return ret
}
return *o.ModelProvider
}
// GetModelProviderOk returns a tuple with the ModelProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetModelProviderOk() (*string, bool) {
if o == nil || IsNil(o.ModelProvider) {
return nil, false
}
return o.ModelProvider, true
}
// HasModelProvider returns a boolean if a field has been set.
func (o *Store) HasModelProvider() bool {
if o != nil && !IsNil(o.ModelProvider) {
return true
}
return false
}
// SetModelProvider gets a reference to the given string and assigns it to the ModelProvider field.
func (o *Store) SetModelProvider(v string) {
o.ModelProvider = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *Store) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *Store) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *Store) SetName(v string) {
o.Name = &v
}
// GetNavItems returns the NavItems field value if set, zero value otherwise.
func (o *Store) GetNavItems() []string {
if o == nil || IsNil(o.NavItems) {
var ret []string
return ret
}
return o.NavItems
}
// GetNavItemsOk returns a tuple with the NavItems field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetNavItemsOk() ([]string, bool) {
if o == nil || IsNil(o.NavItems) {
return nil, false
}
return o.NavItems, true
}
// HasNavItems returns a boolean if a field has been set.
func (o *Store) HasNavItems() bool {
if o != nil && !IsNil(o.NavItems) {
return true
}
return false
}
// SetNavItems gets a reference to the given []string and assigns it to the NavItems field.
func (o *Store) SetNavItems(v []string) {
o.NavItems = v
}
// GetOwner returns the Owner field value if set, zero value otherwise.
func (o *Store) GetOwner() string {
if o == nil || IsNil(o.Owner) {
var ret string
return ret
}
return *o.Owner
}
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetOwnerOk() (*string, bool) {
if o == nil || IsNil(o.Owner) {
return nil, false
}
return o.Owner, true
}
// HasOwner returns a boolean if a field has been set.
func (o *Store) HasOwner() bool {
if o != nil && !IsNil(o.Owner) {
return true
}
return false
}
// SetOwner gets a reference to the given string and assigns it to the Owner field.
func (o *Store) SetOwner(v string) {
o.Owner = &v
}
// GetPrompt returns the Prompt field value if set, zero value otherwise.
func (o *Store) GetPrompt() string {
if o == nil || IsNil(o.Prompt) {
var ret string
return ret
}
return *o.Prompt
}
// GetPromptOk returns a tuple with the Prompt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetPromptOk() (*string, bool) {
if o == nil || IsNil(o.Prompt) {
return nil, false
}
return o.Prompt, true
}
// HasPrompt returns a boolean if a field has been set.
func (o *Store) HasPrompt() bool {
if o != nil && !IsNil(o.Prompt) {
return true
}
return false
}
// SetPrompt gets a reference to the given string and assigns it to the Prompt field.
func (o *Store) SetPrompt(v string) {
o.Prompt = &v
}
// GetPropertiesMap returns the PropertiesMap field value if set, zero value otherwise.
func (o *Store) GetPropertiesMap() map[string]Properties {
if o == nil || IsNil(o.PropertiesMap) {
var ret map[string]Properties
return ret
}
return o.PropertiesMap
}
// GetPropertiesMapOk returns a tuple with the PropertiesMap field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetPropertiesMapOk() (map[string]Properties, bool) {
if o == nil || IsNil(o.PropertiesMap) {
return map[string]Properties{}, false
}
return o.PropertiesMap, true
}
// HasPropertiesMap returns a boolean if a field has been set.
func (o *Store) HasPropertiesMap() bool {
if o != nil && !IsNil(o.PropertiesMap) {
return true
}
return false
}
// SetPropertiesMap gets a reference to the given map[string]Properties and assigns it to the PropertiesMap field.
func (o *Store) SetPropertiesMap(v map[string]Properties) {
o.PropertiesMap = v
}
// GetSearchProvider returns the SearchProvider field value if set, zero value otherwise.
func (o *Store) GetSearchProvider() string {
if o == nil || IsNil(o.SearchProvider) {
var ret string
return ret
}
return *o.SearchProvider
}
// GetSearchProviderOk returns a tuple with the SearchProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetSearchProviderOk() (*string, bool) {
if o == nil || IsNil(o.SearchProvider) {
return nil, false
}
return o.SearchProvider, true
}
// HasSearchProvider returns a boolean if a field has been set.
func (o *Store) HasSearchProvider() bool {
if o != nil && !IsNil(o.SearchProvider) {
return true
}
return false
}
// SetSearchProvider gets a reference to the given string and assigns it to the SearchProvider field.
func (o *Store) SetSearchProvider(v string) {
o.SearchProvider = &v
}
// GetShowAutoRead returns the ShowAutoRead field value if set, zero value otherwise.
func (o *Store) GetShowAutoRead() bool {
if o == nil || IsNil(o.ShowAutoRead) {
var ret bool
return ret
}
return *o.ShowAutoRead
}
// GetShowAutoReadOk returns a tuple with the ShowAutoRead field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetShowAutoReadOk() (*bool, bool) {
if o == nil || IsNil(o.ShowAutoRead) {
return nil, false
}
return o.ShowAutoRead, true
}
// HasShowAutoRead returns a boolean if a field has been set.
func (o *Store) HasShowAutoRead() bool {
if o != nil && !IsNil(o.ShowAutoRead) {
return true
}
return false
}
// SetShowAutoRead gets a reference to the given bool and assigns it to the ShowAutoRead field.
func (o *Store) SetShowAutoRead(v bool) {
o.ShowAutoRead = &v
}
// GetSpeechToTextProvider returns the SpeechToTextProvider field value if set, zero value otherwise.
func (o *Store) GetSpeechToTextProvider() string {
if o == nil || IsNil(o.SpeechToTextProvider) {
var ret string
return ret
}
return *o.SpeechToTextProvider
}
// GetSpeechToTextProviderOk returns a tuple with the SpeechToTextProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetSpeechToTextProviderOk() (*string, bool) {
if o == nil || IsNil(o.SpeechToTextProvider) {
return nil, false
}
return o.SpeechToTextProvider, true
}
// HasSpeechToTextProvider returns a boolean if a field has been set.
func (o *Store) HasSpeechToTextProvider() bool {
if o != nil && !IsNil(o.SpeechToTextProvider) {
return true
}
return false
}
// SetSpeechToTextProvider gets a reference to the given string and assigns it to the SpeechToTextProvider field.
func (o *Store) SetSpeechToTextProvider(v string) {
o.SpeechToTextProvider = &v
}
// GetSplitProvider returns the SplitProvider field value if set, zero value otherwise.
func (o *Store) GetSplitProvider() string {
if o == nil || IsNil(o.SplitProvider) {
var ret string
return ret
}
return *o.SplitProvider
}
// GetSplitProviderOk returns a tuple with the SplitProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetSplitProviderOk() (*string, bool) {
if o == nil || IsNil(o.SplitProvider) {
return nil, false
}
return o.SplitProvider, true
}
// HasSplitProvider returns a boolean if a field has been set.
func (o *Store) HasSplitProvider() bool {
if o != nil && !IsNil(o.SplitProvider) {
return true
}
return false
}
// SetSplitProvider gets a reference to the given string and assigns it to the SplitProvider field.
func (o *Store) SetSplitProvider(v string) {
o.SplitProvider = &v
}
// GetState returns the State field value if set, zero value otherwise.
func (o *Store) GetState() string {
if o == nil || IsNil(o.State) {
var ret string
return ret
}
return *o.State
}
// GetStateOk returns a tuple with the State field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetStateOk() (*string, bool) {
if o == nil || IsNil(o.State) {
return nil, false
}
return o.State, true
}
// HasState returns a boolean if a field has been set.
func (o *Store) HasState() bool {
if o != nil && !IsNil(o.State) {
return true
}
return false
}
// SetState gets a reference to the given string and assigns it to the State field.
func (o *Store) SetState(v string) {
o.State = &v
}
// GetStorageProvider returns the StorageProvider field value if set, zero value otherwise.
func (o *Store) GetStorageProvider() string {
if o == nil || IsNil(o.StorageProvider) {
var ret string
return ret
}
return *o.StorageProvider
}
// GetStorageProviderOk returns a tuple with the StorageProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetStorageProviderOk() (*string, bool) {
if o == nil || IsNil(o.StorageProvider) {
return nil, false
}
return o.StorageProvider, true
}
// HasStorageProvider returns a boolean if a field has been set.
func (o *Store) HasStorageProvider() bool {
if o != nil && !IsNil(o.StorageProvider) {
return true
}
return false
}
// SetStorageProvider gets a reference to the given string and assigns it to the StorageProvider field.
func (o *Store) SetStorageProvider(v string) {
o.StorageProvider = &v
}
// GetStorageSubpath returns the StorageSubpath field value if set, zero value otherwise.
func (o *Store) GetStorageSubpath() string {
if o == nil || IsNil(o.StorageSubpath) {
var ret string
return ret
}
return *o.StorageSubpath
}
// GetStorageSubpathOk returns a tuple with the StorageSubpath field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetStorageSubpathOk() (*string, bool) {
if o == nil || IsNil(o.StorageSubpath) {
return nil, false
}
return o.StorageSubpath, true
}
// HasStorageSubpath returns a boolean if a field has been set.
func (o *Store) HasStorageSubpath() bool {
if o != nil && !IsNil(o.StorageSubpath) {
return true
}
return false
}
// SetStorageSubpath gets a reference to the given string and assigns it to the StorageSubpath field.
func (o *Store) SetStorageSubpath(v string) {
o.StorageSubpath = &v
}
// GetSuggestionCount returns the SuggestionCount field value if set, zero value otherwise.
func (o *Store) GetSuggestionCount() int32 {
if o == nil || IsNil(o.SuggestionCount) {
var ret int32
return ret
}
return *o.SuggestionCount
}
// GetSuggestionCountOk returns a tuple with the SuggestionCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetSuggestionCountOk() (*int32, bool) {
if o == nil || IsNil(o.SuggestionCount) {
return nil, false
}
return o.SuggestionCount, true
}
// HasSuggestionCount returns a boolean if a field has been set.
func (o *Store) HasSuggestionCount() bool {
if o != nil && !IsNil(o.SuggestionCount) {
return true
}
return false
}
// SetSuggestionCount gets a reference to the given int32 and assigns it to the SuggestionCount field.
func (o *Store) SetSuggestionCount(v int32) {
o.SuggestionCount = &v
}
// GetTextToSpeechProvider returns the TextToSpeechProvider field value if set, zero value otherwise.
func (o *Store) GetTextToSpeechProvider() string {
if o == nil || IsNil(o.TextToSpeechProvider) {
var ret string
return ret
}
return *o.TextToSpeechProvider
}
// GetTextToSpeechProviderOk returns a tuple with the TextToSpeechProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetTextToSpeechProviderOk() (*string, bool) {
if o == nil || IsNil(o.TextToSpeechProvider) {
return nil, false
}
return o.TextToSpeechProvider, true
}
// HasTextToSpeechProvider returns a boolean if a field has been set.
func (o *Store) HasTextToSpeechProvider() bool {
if o != nil && !IsNil(o.TextToSpeechProvider) {
return true
}
return false
}
// SetTextToSpeechProvider gets a reference to the given string and assigns it to the TextToSpeechProvider field.
func (o *Store) SetTextToSpeechProvider(v string) {
o.TextToSpeechProvider = &v
}
// GetThemeColor returns the ThemeColor field value if set, zero value otherwise.
func (o *Store) GetThemeColor() string {
if o == nil || IsNil(o.ThemeColor) {
var ret string
return ret
}
return *o.ThemeColor
}
// GetThemeColorOk returns a tuple with the ThemeColor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetThemeColorOk() (*string, bool) {
if o == nil || IsNil(o.ThemeColor) {
return nil, false
}
return o.ThemeColor, true
}
// HasThemeColor returns a boolean if a field has been set.
func (o *Store) HasThemeColor() bool {
if o != nil && !IsNil(o.ThemeColor) {
return true
}
return false
}
// SetThemeColor gets a reference to the given string and assigns it to the ThemeColor field.
func (o *Store) SetThemeColor(v string) {
o.ThemeColor = &v
}
// GetTitle returns the Title field value if set, zero value otherwise.
func (o *Store) GetTitle() string {
if o == nil || IsNil(o.Title) {
var ret string
return ret
}
return *o.Title
}
// GetTitleOk returns a tuple with the Title field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetTitleOk() (*string, bool) {
if o == nil || IsNil(o.Title) {
return nil, false
}
return o.Title, true
}
// HasTitle returns a boolean if a field has been set.
func (o *Store) HasTitle() bool {
if o != nil && !IsNil(o.Title) {
return true
}
return false
}
// SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *Store) SetTitle(v string) {
o.Title = &v
}
// GetVectorStoreId returns the VectorStoreId field value if set, zero value otherwise.
func (o *Store) GetVectorStoreId() string {
if o == nil || IsNil(o.VectorStoreId) {
var ret string
return ret
}
return *o.VectorStoreId
}
// GetVectorStoreIdOk returns a tuple with the VectorStoreId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetVectorStoreIdOk() (*string, bool) {
if o == nil || IsNil(o.VectorStoreId) {
return nil, false
}
return o.VectorStoreId, true
}
// HasVectorStoreId returns a boolean if a field has been set.
func (o *Store) HasVectorStoreId() bool {
if o != nil && !IsNil(o.VectorStoreId) {
return true
}
return false
}
// SetVectorStoreId gets a reference to the given string and assigns it to the VectorStoreId field.
func (o *Store) SetVectorStoreId(v string) {
o.VectorStoreId = &v
}
// GetVectorStores returns the VectorStores field value if set, zero value otherwise.
func (o *Store) GetVectorStores() []string {
if o == nil || IsNil(o.VectorStores) {
var ret []string
return ret
}
return o.VectorStores
}
// GetVectorStoresOk returns a tuple with the VectorStores field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetVectorStoresOk() ([]string, bool) {
if o == nil || IsNil(o.VectorStores) {
return nil, false
}
return o.VectorStores, true
}
// HasVectorStores returns a boolean if a field has been set.
func (o *Store) HasVectorStores() bool {
if o != nil && !IsNil(o.VectorStores) {
return true
}
return false
}
// SetVectorStores gets a reference to the given []string and assigns it to the VectorStores field.
func (o *Store) SetVectorStores(v []string) {
o.VectorStores = v
}
// GetWelcome returns the Welcome field value if set, zero value otherwise.
func (o *Store) GetWelcome() string {
if o == nil || IsNil(o.Welcome) {
var ret string
return ret
}
return *o.Welcome
}
// GetWelcomeOk returns a tuple with the Welcome field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetWelcomeOk() (*string, bool) {
if o == nil || IsNil(o.Welcome) {
return nil, false
}
return o.Welcome, true
}
// HasWelcome returns a boolean if a field has been set.
func (o *Store) HasWelcome() bool {
if o != nil && !IsNil(o.Welcome) {
return true
}
return false
}
// SetWelcome gets a reference to the given string and assigns it to the Welcome field.
func (o *Store) SetWelcome(v string) {
o.Welcome = &v
}
// GetWelcomeText returns the WelcomeText field value if set, zero value otherwise.
func (o *Store) GetWelcomeText() string {
if o == nil || IsNil(o.WelcomeText) {
var ret string
return ret
}
return *o.WelcomeText
}
// GetWelcomeTextOk returns a tuple with the WelcomeText field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetWelcomeTextOk() (*string, bool) {
if o == nil || IsNil(o.WelcomeText) {
return nil, false
}
return o.WelcomeText, true
}
// HasWelcomeText returns a boolean if a field has been set.
func (o *Store) HasWelcomeText() bool {
if o != nil && !IsNil(o.WelcomeText) {
return true
}
return false
}
// SetWelcomeText gets a reference to the given string and assigns it to the WelcomeText field.
func (o *Store) SetWelcomeText(v string) {
o.WelcomeText = &v
}
// GetWelcomeTitle returns the WelcomeTitle field value if set, zero value otherwise.
func (o *Store) GetWelcomeTitle() string {
if o == nil || IsNil(o.WelcomeTitle) {
var ret string
return ret
}
return *o.WelcomeTitle
}
// GetWelcomeTitleOk returns a tuple with the WelcomeTitle field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Store) GetWelcomeTitleOk() (*string, bool) {
if o == nil || IsNil(o.WelcomeTitle) {
return nil, false
}
return o.WelcomeTitle, true
}
// HasWelcomeTitle returns a boolean if a field has been set.
func (o *Store) HasWelcomeTitle() bool {
if o != nil && !IsNil(o.WelcomeTitle) {
return true
}
return false
}
// SetWelcomeTitle gets a reference to the given string and assigns it to the WelcomeTitle field.
func (o *Store) SetWelcomeTitle(v string) {
o.WelcomeTitle = &v
}
func (o Store) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o Store) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AgentProvider) {
toSerialize["agentProvider"] = o.AgentProvider
}
if !IsNil(o.Avatar) {
toSerialize["avatar"] = o.Avatar
}
if !IsNil(o.BuiltinTools) {
toSerialize["builtinTools"] = o.BuiltinTools
}
if !IsNil(o.ChatCount) {
toSerialize["chatCount"] = o.ChatCount
}
if !IsNil(o.ChildModelProviders) {
toSerialize["childModelProviders"] = o.ChildModelProviders
}
if !IsNil(o.ChildStores) {
toSerialize["childStores"] = o.ChildStores
}
if !IsNil(o.CreatedTime) {
toSerialize["createdTime"] = o.CreatedTime
}
if !IsNil(o.DisableFileUpload) {
toSerialize["disableFileUpload"] = o.DisableFileUpload
}
if !IsNil(o.DisplayName) {
toSerialize["displayName"] = o.DisplayName
}
if !IsNil(o.EmbeddingProvider) {
toSerialize["embeddingProvider"] = o.EmbeddingProvider
}
if !IsNil(o.EnableTtsStreaming) {
toSerialize["enableTtsStreaming"] = o.EnableTtsStreaming
}
if !IsNil(o.ExampleQuestions) {
toSerialize["exampleQuestions"] = o.ExampleQuestions
}
if !IsNil(o.FaviconUrl) {
toSerialize["faviconUrl"] = o.FaviconUrl
}
if !IsNil(o.FileTree) {
toSerialize["fileTree"] = o.FileTree
}
if !IsNil(o.FooterHtml) {
toSerialize["footerHtml"] = o.FooterHtml
}
if !IsNil(o.ForbiddenWords) {
toSerialize["forbiddenWords"] = o.ForbiddenWords
}
if !IsNil(o.Frequency) {
toSerialize["frequency"] = o.Frequency
}
if !IsNil(o.HideThinking) {
toSerialize["hideThinking"] = o.HideThinking
}
if !IsNil(o.HtmlTitle) {
toSerialize["htmlTitle"] = o.HtmlTitle
}
if !IsNil(o.ImageProvider) {
toSerialize["imageProvider"] = o.ImageProvider
}
if !IsNil(o.IsDefault) {
toSerialize["isDefault"] = o.IsDefault
}
if !IsNil(o.KnowledgeCount) {
toSerialize["knowledgeCount"] = o.KnowledgeCount
}
if !IsNil(o.LimitMinutes) {
toSerialize["limitMinutes"] = o.LimitMinutes
}
if !IsNil(o.LogoUrl) {
toSerialize["logoUrl"] = o.LogoUrl
}
if !IsNil(o.MemoryLimit) {
toSerialize["memoryLimit"] = o.MemoryLimit
}
if !IsNil(o.MessageCount) {
toSerialize["messageCount"] = o.MessageCount
}
if !IsNil(o.ModelProvider) {
toSerialize["modelProvider"] = o.ModelProvider
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.NavItems) {
toSerialize["navItems"] = o.NavItems
}
if !IsNil(o.Owner) {
toSerialize["owner"] = o.Owner
}
if !IsNil(o.Prompt) {
toSerialize["prompt"] = o.Prompt
}
if !IsNil(o.PropertiesMap) {
toSerialize["propertiesMap"] = o.PropertiesMap
}
if !IsNil(o.SearchProvider) {
toSerialize["searchProvider"] = o.SearchProvider
}
if !IsNil(o.ShowAutoRead) {
toSerialize["showAutoRead"] = o.ShowAutoRead
}
if !IsNil(o.SpeechToTextProvider) {
toSerialize["speechToTextProvider"] = o.SpeechToTextProvider
}
if !IsNil(o.SplitProvider) {
toSerialize["splitProvider"] = o.SplitProvider
}
if !IsNil(o.State) {
toSerialize["state"] = o.State
}
if !IsNil(o.StorageProvider) {
toSerialize["storageProvider"] = o.StorageProvider
}
if !IsNil(o.StorageSubpath) {
toSerialize["storageSubpath"] = o.StorageSubpath
}
if !IsNil(o.SuggestionCount) {
toSerialize["suggestionCount"] = o.SuggestionCount
}
if !IsNil(o.TextToSpeechProvider) {
toSerialize["textToSpeechProvider"] = o.TextToSpeechProvider
}
if !IsNil(o.ThemeColor) {
toSerialize["themeColor"] = o.ThemeColor
}
if !IsNil(o.Title) {
toSerialize["title"] = o.Title
}
if !IsNil(o.VectorStoreId) {
toSerialize["vectorStoreId"] = o.VectorStoreId
}
if !IsNil(o.VectorStores) {
toSerialize["vectorStores"] = o.VectorStores
}
if !IsNil(o.Welcome) {
toSerialize["welcome"] = o.Welcome
}
if !IsNil(o.WelcomeText) {
toSerialize["welcomeText"] = o.WelcomeText
}
if !IsNil(o.WelcomeTitle) {
toSerialize["welcomeTitle"] = o.WelcomeTitle
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *Store) UnmarshalJSON(data []byte) (err error) {
varStore := _Store{}
err = json.Unmarshal(data, &varStore)
if err != nil {
return err
}
*o = Store(varStore)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "agentProvider")
delete(additionalProperties, "avatar")
delete(additionalProperties, "builtinTools")
delete(additionalProperties, "chatCount")
delete(additionalProperties, "childModelProviders")
delete(additionalProperties, "childStores")
delete(additionalProperties, "createdTime")
delete(additionalProperties, "disableFileUpload")
delete(additionalProperties, "displayName")
delete(additionalProperties, "embeddingProvider")
delete(additionalProperties, "enableTtsStreaming")
delete(additionalProperties, "exampleQuestions")
delete(additionalProperties, "faviconUrl")
delete(additionalProperties, "fileTree")
delete(additionalProperties, "footerHtml")
delete(additionalProperties, "forbiddenWords")
delete(additionalProperties, "frequency")
delete(additionalProperties, "hideThinking")
delete(additionalProperties, "htmlTitle")
delete(additionalProperties, "imageProvider")
delete(additionalProperties, "isDefault")
delete(additionalProperties, "knowledgeCount")
delete(additionalProperties, "limitMinutes")
delete(additionalProperties, "logoUrl")
delete(additionalProperties, "memoryLimit")
delete(additionalProperties, "messageCount")
delete(additionalProperties, "modelProvider")
delete(additionalProperties, "name")
delete(additionalProperties, "navItems")
delete(additionalProperties, "owner")
delete(additionalProperties, "prompt")
delete(additionalProperties, "propertiesMap")
delete(additionalProperties, "searchProvider")
delete(additionalProperties, "showAutoRead")
delete(additionalProperties, "speechToTextProvider")
delete(additionalProperties, "splitProvider")
delete(additionalProperties, "state")
delete(additionalProperties, "storageProvider")
delete(additionalProperties, "storageSubpath")
delete(additionalProperties, "suggestionCount")
delete(additionalProperties, "textToSpeechProvider")
delete(additionalProperties, "themeColor")
delete(additionalProperties, "title")
delete(additionalProperties, "vectorStoreId")
delete(additionalProperties, "vectorStores")
delete(additionalProperties, "welcome")
delete(additionalProperties, "welcomeText")
delete(additionalProperties, "welcomeTitle")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableStore struct {
value *Store
isSet bool
}
func (v NullableStore) Get() *Store {
return v.value
}
func (v *NullableStore) Set(val *Store) {
v.value = val
v.isSet = true
}
func (v NullableStore) IsSet() bool {
return v.isSet
}
func (v *NullableStore) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableStore(val *Store) *NullableStore {
return &NullableStore{value: val, isSet: true}
}
func (v NullableStore) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableStore) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}