mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
1412 lines
38 KiB
Go
1412 lines
38 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 Message type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &Message{}
|
|
|
|
// Message struct for Message
|
|
type Message struct {
|
|
AnsweredTime *string `json:"answeredTime,omitempty"`
|
|
Author *string `json:"author,omitempty"`
|
|
Chat *string `json:"chat,omitempty"`
|
|
ClaimedTime *string `json:"claimedTime,omitempty"`
|
|
Comment *string `json:"comment,omitempty"`
|
|
CreatedTime *string `json:"createdTime,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
DislikeUsers []string `json:"dislikeUsers,omitempty"`
|
|
EmbeddingProvider *string `json:"embeddingProvider,omitempty"`
|
|
ErrorText *string `json:"errorText,omitempty"`
|
|
FileName *string `json:"fileName,omitempty"`
|
|
IsAlerted *bool `json:"isAlerted,omitempty"`
|
|
IsDeleted *bool `json:"isDeleted,omitempty"`
|
|
IsHidden *bool `json:"isHidden,omitempty"`
|
|
IsRegenerated *bool `json:"isRegenerated,omitempty"`
|
|
LikeUsers []string `json:"likeUsers,omitempty"`
|
|
ModelProvider *string `json:"modelProvider,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
NeedNotify *bool `json:"needNotify,omitempty"`
|
|
Organization *string `json:"organization,omitempty"`
|
|
Owner *string `json:"owner,omitempty"`
|
|
Price *float32 `json:"price,omitempty"`
|
|
ReasonText *string `json:"reasonText,omitempty"`
|
|
ReplyTo *string `json:"replyTo,omitempty"`
|
|
SearchResults []ModelSearchResult `json:"searchResults,omitempty"`
|
|
Store *string `json:"store,omitempty"`
|
|
Suggestions []Candidate `json:"suggestions,omitempty"`
|
|
Text *string `json:"text,omitempty"`
|
|
TextTokenCount *int32 `json:"textTokenCount,omitempty"`
|
|
TokenCount *int32 `json:"tokenCount,omitempty"`
|
|
ToolCalls []ModelToolCall `json:"toolCalls,omitempty"`
|
|
TransactionId *string `json:"transactionId,omitempty"`
|
|
User *string `json:"user,omitempty"`
|
|
VectorScores []VectorScore `json:"vectorScores,omitempty"`
|
|
WebSearchEnabled *bool `json:"webSearchEnabled,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _Message Message
|
|
|
|
// NewMessage instantiates a new Message 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 NewMessage() *Message {
|
|
this := Message{}
|
|
return &this
|
|
}
|
|
|
|
// NewMessageWithDefaults instantiates a new Message 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 NewMessageWithDefaults() *Message {
|
|
this := Message{}
|
|
return &this
|
|
}
|
|
|
|
// GetAnsweredTime returns the AnsweredTime field value if set, zero value otherwise.
|
|
func (o *Message) GetAnsweredTime() string {
|
|
if o == nil || IsNil(o.AnsweredTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AnsweredTime
|
|
}
|
|
|
|
// GetAnsweredTimeOk returns a tuple with the AnsweredTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetAnsweredTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AnsweredTime) {
|
|
return nil, false
|
|
}
|
|
return o.AnsweredTime, true
|
|
}
|
|
|
|
// HasAnsweredTime returns a boolean if a field has been set.
|
|
func (o *Message) HasAnsweredTime() bool {
|
|
if o != nil && !IsNil(o.AnsweredTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAnsweredTime gets a reference to the given string and assigns it to the AnsweredTime field.
|
|
func (o *Message) SetAnsweredTime(v string) {
|
|
o.AnsweredTime = &v
|
|
}
|
|
|
|
// GetAuthor returns the Author field value if set, zero value otherwise.
|
|
func (o *Message) GetAuthor() string {
|
|
if o == nil || IsNil(o.Author) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Author
|
|
}
|
|
|
|
// GetAuthorOk returns a tuple with the Author field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetAuthorOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Author) {
|
|
return nil, false
|
|
}
|
|
return o.Author, true
|
|
}
|
|
|
|
// HasAuthor returns a boolean if a field has been set.
|
|
func (o *Message) HasAuthor() bool {
|
|
if o != nil && !IsNil(o.Author) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthor gets a reference to the given string and assigns it to the Author field.
|
|
func (o *Message) SetAuthor(v string) {
|
|
o.Author = &v
|
|
}
|
|
|
|
// GetChat returns the Chat field value if set, zero value otherwise.
|
|
func (o *Message) GetChat() string {
|
|
if o == nil || IsNil(o.Chat) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Chat
|
|
}
|
|
|
|
// GetChatOk returns a tuple with the Chat field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetChatOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Chat) {
|
|
return nil, false
|
|
}
|
|
return o.Chat, true
|
|
}
|
|
|
|
// HasChat returns a boolean if a field has been set.
|
|
func (o *Message) HasChat() bool {
|
|
if o != nil && !IsNil(o.Chat) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetChat gets a reference to the given string and assigns it to the Chat field.
|
|
func (o *Message) SetChat(v string) {
|
|
o.Chat = &v
|
|
}
|
|
|
|
// GetClaimedTime returns the ClaimedTime field value if set, zero value otherwise.
|
|
func (o *Message) GetClaimedTime() string {
|
|
if o == nil || IsNil(o.ClaimedTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ClaimedTime
|
|
}
|
|
|
|
// GetClaimedTimeOk returns a tuple with the ClaimedTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetClaimedTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ClaimedTime) {
|
|
return nil, false
|
|
}
|
|
return o.ClaimedTime, true
|
|
}
|
|
|
|
// HasClaimedTime returns a boolean if a field has been set.
|
|
func (o *Message) HasClaimedTime() bool {
|
|
if o != nil && !IsNil(o.ClaimedTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClaimedTime gets a reference to the given string and assigns it to the ClaimedTime field.
|
|
func (o *Message) SetClaimedTime(v string) {
|
|
o.ClaimedTime = &v
|
|
}
|
|
|
|
// GetComment returns the Comment field value if set, zero value otherwise.
|
|
func (o *Message) GetComment() string {
|
|
if o == nil || IsNil(o.Comment) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Comment
|
|
}
|
|
|
|
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetCommentOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Comment) {
|
|
return nil, false
|
|
}
|
|
return o.Comment, true
|
|
}
|
|
|
|
// HasComment returns a boolean if a field has been set.
|
|
func (o *Message) HasComment() bool {
|
|
if o != nil && !IsNil(o.Comment) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetComment gets a reference to the given string and assigns it to the Comment field.
|
|
func (o *Message) SetComment(v string) {
|
|
o.Comment = &v
|
|
}
|
|
|
|
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
|
|
func (o *Message) 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 *Message) 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 *Message) 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 *Message) SetCreatedTime(v string) {
|
|
o.CreatedTime = &v
|
|
}
|
|
|
|
// GetCurrency returns the Currency field value if set, zero value otherwise.
|
|
func (o *Message) GetCurrency() string {
|
|
if o == nil || IsNil(o.Currency) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Currency
|
|
}
|
|
|
|
// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetCurrencyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Currency) {
|
|
return nil, false
|
|
}
|
|
return o.Currency, true
|
|
}
|
|
|
|
// HasCurrency returns a boolean if a field has been set.
|
|
func (o *Message) HasCurrency() bool {
|
|
if o != nil && !IsNil(o.Currency) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCurrency gets a reference to the given string and assigns it to the Currency field.
|
|
func (o *Message) SetCurrency(v string) {
|
|
o.Currency = &v
|
|
}
|
|
|
|
// GetDislikeUsers returns the DislikeUsers field value if set, zero value otherwise.
|
|
func (o *Message) GetDislikeUsers() []string {
|
|
if o == nil || IsNil(o.DislikeUsers) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.DislikeUsers
|
|
}
|
|
|
|
// GetDislikeUsersOk returns a tuple with the DislikeUsers field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetDislikeUsersOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.DislikeUsers) {
|
|
return nil, false
|
|
}
|
|
return o.DislikeUsers, true
|
|
}
|
|
|
|
// HasDislikeUsers returns a boolean if a field has been set.
|
|
func (o *Message) HasDislikeUsers() bool {
|
|
if o != nil && !IsNil(o.DislikeUsers) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDislikeUsers gets a reference to the given []string and assigns it to the DislikeUsers field.
|
|
func (o *Message) SetDislikeUsers(v []string) {
|
|
o.DislikeUsers = v
|
|
}
|
|
|
|
// GetEmbeddingProvider returns the EmbeddingProvider field value if set, zero value otherwise.
|
|
func (o *Message) 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 *Message) 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 *Message) 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 *Message) SetEmbeddingProvider(v string) {
|
|
o.EmbeddingProvider = &v
|
|
}
|
|
|
|
// GetErrorText returns the ErrorText field value if set, zero value otherwise.
|
|
func (o *Message) GetErrorText() string {
|
|
if o == nil || IsNil(o.ErrorText) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ErrorText
|
|
}
|
|
|
|
// GetErrorTextOk returns a tuple with the ErrorText field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetErrorTextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ErrorText) {
|
|
return nil, false
|
|
}
|
|
return o.ErrorText, true
|
|
}
|
|
|
|
// HasErrorText returns a boolean if a field has been set.
|
|
func (o *Message) HasErrorText() bool {
|
|
if o != nil && !IsNil(o.ErrorText) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetErrorText gets a reference to the given string and assigns it to the ErrorText field.
|
|
func (o *Message) SetErrorText(v string) {
|
|
o.ErrorText = &v
|
|
}
|
|
|
|
// GetFileName returns the FileName field value if set, zero value otherwise.
|
|
func (o *Message) GetFileName() string {
|
|
if o == nil || IsNil(o.FileName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.FileName
|
|
}
|
|
|
|
// GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetFileNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.FileName) {
|
|
return nil, false
|
|
}
|
|
return o.FileName, true
|
|
}
|
|
|
|
// HasFileName returns a boolean if a field has been set.
|
|
func (o *Message) HasFileName() bool {
|
|
if o != nil && !IsNil(o.FileName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFileName gets a reference to the given string and assigns it to the FileName field.
|
|
func (o *Message) SetFileName(v string) {
|
|
o.FileName = &v
|
|
}
|
|
|
|
// GetIsAlerted returns the IsAlerted field value if set, zero value otherwise.
|
|
func (o *Message) GetIsAlerted() bool {
|
|
if o == nil || IsNil(o.IsAlerted) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsAlerted
|
|
}
|
|
|
|
// GetIsAlertedOk returns a tuple with the IsAlerted field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetIsAlertedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsAlerted) {
|
|
return nil, false
|
|
}
|
|
return o.IsAlerted, true
|
|
}
|
|
|
|
// HasIsAlerted returns a boolean if a field has been set.
|
|
func (o *Message) HasIsAlerted() bool {
|
|
if o != nil && !IsNil(o.IsAlerted) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsAlerted gets a reference to the given bool and assigns it to the IsAlerted field.
|
|
func (o *Message) SetIsAlerted(v bool) {
|
|
o.IsAlerted = &v
|
|
}
|
|
|
|
// GetIsDeleted returns the IsDeleted field value if set, zero value otherwise.
|
|
func (o *Message) GetIsDeleted() bool {
|
|
if o == nil || IsNil(o.IsDeleted) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsDeleted
|
|
}
|
|
|
|
// GetIsDeletedOk returns a tuple with the IsDeleted field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetIsDeletedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsDeleted) {
|
|
return nil, false
|
|
}
|
|
return o.IsDeleted, true
|
|
}
|
|
|
|
// HasIsDeleted returns a boolean if a field has been set.
|
|
func (o *Message) HasIsDeleted() bool {
|
|
if o != nil && !IsNil(o.IsDeleted) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsDeleted gets a reference to the given bool and assigns it to the IsDeleted field.
|
|
func (o *Message) SetIsDeleted(v bool) {
|
|
o.IsDeleted = &v
|
|
}
|
|
|
|
// GetIsHidden returns the IsHidden field value if set, zero value otherwise.
|
|
func (o *Message) GetIsHidden() bool {
|
|
if o == nil || IsNil(o.IsHidden) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsHidden
|
|
}
|
|
|
|
// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetIsHiddenOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsHidden) {
|
|
return nil, false
|
|
}
|
|
return o.IsHidden, true
|
|
}
|
|
|
|
// HasIsHidden returns a boolean if a field has been set.
|
|
func (o *Message) HasIsHidden() bool {
|
|
if o != nil && !IsNil(o.IsHidden) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field.
|
|
func (o *Message) SetIsHidden(v bool) {
|
|
o.IsHidden = &v
|
|
}
|
|
|
|
// GetIsRegenerated returns the IsRegenerated field value if set, zero value otherwise.
|
|
func (o *Message) GetIsRegenerated() bool {
|
|
if o == nil || IsNil(o.IsRegenerated) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsRegenerated
|
|
}
|
|
|
|
// GetIsRegeneratedOk returns a tuple with the IsRegenerated field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetIsRegeneratedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsRegenerated) {
|
|
return nil, false
|
|
}
|
|
return o.IsRegenerated, true
|
|
}
|
|
|
|
// HasIsRegenerated returns a boolean if a field has been set.
|
|
func (o *Message) HasIsRegenerated() bool {
|
|
if o != nil && !IsNil(o.IsRegenerated) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsRegenerated gets a reference to the given bool and assigns it to the IsRegenerated field.
|
|
func (o *Message) SetIsRegenerated(v bool) {
|
|
o.IsRegenerated = &v
|
|
}
|
|
|
|
// GetLikeUsers returns the LikeUsers field value if set, zero value otherwise.
|
|
func (o *Message) GetLikeUsers() []string {
|
|
if o == nil || IsNil(o.LikeUsers) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.LikeUsers
|
|
}
|
|
|
|
// GetLikeUsersOk returns a tuple with the LikeUsers field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetLikeUsersOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.LikeUsers) {
|
|
return nil, false
|
|
}
|
|
return o.LikeUsers, true
|
|
}
|
|
|
|
// HasLikeUsers returns a boolean if a field has been set.
|
|
func (o *Message) HasLikeUsers() bool {
|
|
if o != nil && !IsNil(o.LikeUsers) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLikeUsers gets a reference to the given []string and assigns it to the LikeUsers field.
|
|
func (o *Message) SetLikeUsers(v []string) {
|
|
o.LikeUsers = v
|
|
}
|
|
|
|
// GetModelProvider returns the ModelProvider field value if set, zero value otherwise.
|
|
func (o *Message) 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 *Message) 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 *Message) 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 *Message) SetModelProvider(v string) {
|
|
o.ModelProvider = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *Message) 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 *Message) 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 *Message) 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 *Message) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetNeedNotify returns the NeedNotify field value if set, zero value otherwise.
|
|
func (o *Message) GetNeedNotify() bool {
|
|
if o == nil || IsNil(o.NeedNotify) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.NeedNotify
|
|
}
|
|
|
|
// GetNeedNotifyOk returns a tuple with the NeedNotify field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetNeedNotifyOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.NeedNotify) {
|
|
return nil, false
|
|
}
|
|
return o.NeedNotify, true
|
|
}
|
|
|
|
// HasNeedNotify returns a boolean if a field has been set.
|
|
func (o *Message) HasNeedNotify() bool {
|
|
if o != nil && !IsNil(o.NeedNotify) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNeedNotify gets a reference to the given bool and assigns it to the NeedNotify field.
|
|
func (o *Message) SetNeedNotify(v bool) {
|
|
o.NeedNotify = &v
|
|
}
|
|
|
|
// GetOrganization returns the Organization field value if set, zero value otherwise.
|
|
func (o *Message) GetOrganization() string {
|
|
if o == nil || IsNil(o.Organization) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Organization
|
|
}
|
|
|
|
// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetOrganizationOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Organization) {
|
|
return nil, false
|
|
}
|
|
return o.Organization, true
|
|
}
|
|
|
|
// HasOrganization returns a boolean if a field has been set.
|
|
func (o *Message) HasOrganization() bool {
|
|
if o != nil && !IsNil(o.Organization) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOrganization gets a reference to the given string and assigns it to the Organization field.
|
|
func (o *Message) SetOrganization(v string) {
|
|
o.Organization = &v
|
|
}
|
|
|
|
// GetOwner returns the Owner field value if set, zero value otherwise.
|
|
func (o *Message) 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 *Message) 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 *Message) 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 *Message) SetOwner(v string) {
|
|
o.Owner = &v
|
|
}
|
|
|
|
// GetPrice returns the Price field value if set, zero value otherwise.
|
|
func (o *Message) GetPrice() float32 {
|
|
if o == nil || IsNil(o.Price) {
|
|
var ret float32
|
|
return ret
|
|
}
|
|
return *o.Price
|
|
}
|
|
|
|
// GetPriceOk returns a tuple with the Price field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetPriceOk() (*float32, bool) {
|
|
if o == nil || IsNil(o.Price) {
|
|
return nil, false
|
|
}
|
|
return o.Price, true
|
|
}
|
|
|
|
// HasPrice returns a boolean if a field has been set.
|
|
func (o *Message) HasPrice() bool {
|
|
if o != nil && !IsNil(o.Price) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPrice gets a reference to the given float32 and assigns it to the Price field.
|
|
func (o *Message) SetPrice(v float32) {
|
|
o.Price = &v
|
|
}
|
|
|
|
// GetReasonText returns the ReasonText field value if set, zero value otherwise.
|
|
func (o *Message) GetReasonText() string {
|
|
if o == nil || IsNil(o.ReasonText) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ReasonText
|
|
}
|
|
|
|
// GetReasonTextOk returns a tuple with the ReasonText field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetReasonTextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ReasonText) {
|
|
return nil, false
|
|
}
|
|
return o.ReasonText, true
|
|
}
|
|
|
|
// HasReasonText returns a boolean if a field has been set.
|
|
func (o *Message) HasReasonText() bool {
|
|
if o != nil && !IsNil(o.ReasonText) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReasonText gets a reference to the given string and assigns it to the ReasonText field.
|
|
func (o *Message) SetReasonText(v string) {
|
|
o.ReasonText = &v
|
|
}
|
|
|
|
// GetReplyTo returns the ReplyTo field value if set, zero value otherwise.
|
|
func (o *Message) GetReplyTo() string {
|
|
if o == nil || IsNil(o.ReplyTo) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ReplyTo
|
|
}
|
|
|
|
// GetReplyToOk returns a tuple with the ReplyTo field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetReplyToOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ReplyTo) {
|
|
return nil, false
|
|
}
|
|
return o.ReplyTo, true
|
|
}
|
|
|
|
// HasReplyTo returns a boolean if a field has been set.
|
|
func (o *Message) HasReplyTo() bool {
|
|
if o != nil && !IsNil(o.ReplyTo) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReplyTo gets a reference to the given string and assigns it to the ReplyTo field.
|
|
func (o *Message) SetReplyTo(v string) {
|
|
o.ReplyTo = &v
|
|
}
|
|
|
|
// GetSearchResults returns the SearchResults field value if set, zero value otherwise.
|
|
func (o *Message) GetSearchResults() []ModelSearchResult {
|
|
if o == nil || IsNil(o.SearchResults) {
|
|
var ret []ModelSearchResult
|
|
return ret
|
|
}
|
|
return o.SearchResults
|
|
}
|
|
|
|
// GetSearchResultsOk returns a tuple with the SearchResults field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetSearchResultsOk() ([]ModelSearchResult, bool) {
|
|
if o == nil || IsNil(o.SearchResults) {
|
|
return nil, false
|
|
}
|
|
return o.SearchResults, true
|
|
}
|
|
|
|
// HasSearchResults returns a boolean if a field has been set.
|
|
func (o *Message) HasSearchResults() bool {
|
|
if o != nil && !IsNil(o.SearchResults) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSearchResults gets a reference to the given []ModelSearchResult and assigns it to the SearchResults field.
|
|
func (o *Message) SetSearchResults(v []ModelSearchResult) {
|
|
o.SearchResults = v
|
|
}
|
|
|
|
// GetStore returns the Store field value if set, zero value otherwise.
|
|
func (o *Message) GetStore() string {
|
|
if o == nil || IsNil(o.Store) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Store
|
|
}
|
|
|
|
// GetStoreOk returns a tuple with the Store field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetStoreOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Store) {
|
|
return nil, false
|
|
}
|
|
return o.Store, true
|
|
}
|
|
|
|
// HasStore returns a boolean if a field has been set.
|
|
func (o *Message) HasStore() bool {
|
|
if o != nil && !IsNil(o.Store) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStore gets a reference to the given string and assigns it to the Store field.
|
|
func (o *Message) SetStore(v string) {
|
|
o.Store = &v
|
|
}
|
|
|
|
// GetSuggestions returns the Suggestions field value if set, zero value otherwise.
|
|
func (o *Message) GetSuggestions() []Candidate {
|
|
if o == nil || IsNil(o.Suggestions) {
|
|
var ret []Candidate
|
|
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 *Message) GetSuggestionsOk() ([]Candidate, 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 *Message) HasSuggestions() bool {
|
|
if o != nil && !IsNil(o.Suggestions) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSuggestions gets a reference to the given []Candidate and assigns it to the Suggestions field.
|
|
func (o *Message) SetSuggestions(v []Candidate) {
|
|
o.Suggestions = v
|
|
}
|
|
|
|
// GetText returns the Text field value if set, zero value otherwise.
|
|
func (o *Message) GetText() string {
|
|
if o == nil || IsNil(o.Text) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Text
|
|
}
|
|
|
|
// GetTextOk returns a tuple with the Text field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetTextOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Text) {
|
|
return nil, false
|
|
}
|
|
return o.Text, true
|
|
}
|
|
|
|
// HasText returns a boolean if a field has been set.
|
|
func (o *Message) HasText() bool {
|
|
if o != nil && !IsNil(o.Text) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetText gets a reference to the given string and assigns it to the Text field.
|
|
func (o *Message) SetText(v string) {
|
|
o.Text = &v
|
|
}
|
|
|
|
// GetTextTokenCount returns the TextTokenCount field value if set, zero value otherwise.
|
|
func (o *Message) GetTextTokenCount() int32 {
|
|
if o == nil || IsNil(o.TextTokenCount) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.TextTokenCount
|
|
}
|
|
|
|
// GetTextTokenCountOk returns a tuple with the TextTokenCount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetTextTokenCountOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.TextTokenCount) {
|
|
return nil, false
|
|
}
|
|
return o.TextTokenCount, true
|
|
}
|
|
|
|
// HasTextTokenCount returns a boolean if a field has been set.
|
|
func (o *Message) HasTextTokenCount() bool {
|
|
if o != nil && !IsNil(o.TextTokenCount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTextTokenCount gets a reference to the given int32 and assigns it to the TextTokenCount field.
|
|
func (o *Message) SetTextTokenCount(v int32) {
|
|
o.TextTokenCount = &v
|
|
}
|
|
|
|
// GetTokenCount returns the TokenCount field value if set, zero value otherwise.
|
|
func (o *Message) GetTokenCount() int32 {
|
|
if o == nil || IsNil(o.TokenCount) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.TokenCount
|
|
}
|
|
|
|
// GetTokenCountOk returns a tuple with the TokenCount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetTokenCountOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.TokenCount) {
|
|
return nil, false
|
|
}
|
|
return o.TokenCount, true
|
|
}
|
|
|
|
// HasTokenCount returns a boolean if a field has been set.
|
|
func (o *Message) HasTokenCount() bool {
|
|
if o != nil && !IsNil(o.TokenCount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTokenCount gets a reference to the given int32 and assigns it to the TokenCount field.
|
|
func (o *Message) SetTokenCount(v int32) {
|
|
o.TokenCount = &v
|
|
}
|
|
|
|
// GetToolCalls returns the ToolCalls field value if set, zero value otherwise.
|
|
func (o *Message) GetToolCalls() []ModelToolCall {
|
|
if o == nil || IsNil(o.ToolCalls) {
|
|
var ret []ModelToolCall
|
|
return ret
|
|
}
|
|
return o.ToolCalls
|
|
}
|
|
|
|
// GetToolCallsOk returns a tuple with the ToolCalls field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetToolCallsOk() ([]ModelToolCall, bool) {
|
|
if o == nil || IsNil(o.ToolCalls) {
|
|
return nil, false
|
|
}
|
|
return o.ToolCalls, true
|
|
}
|
|
|
|
// HasToolCalls returns a boolean if a field has been set.
|
|
func (o *Message) HasToolCalls() bool {
|
|
if o != nil && !IsNil(o.ToolCalls) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetToolCalls gets a reference to the given []ModelToolCall and assigns it to the ToolCalls field.
|
|
func (o *Message) SetToolCalls(v []ModelToolCall) {
|
|
o.ToolCalls = v
|
|
}
|
|
|
|
// GetTransactionId returns the TransactionId field value if set, zero value otherwise.
|
|
func (o *Message) GetTransactionId() string {
|
|
if o == nil || IsNil(o.TransactionId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.TransactionId
|
|
}
|
|
|
|
// GetTransactionIdOk returns a tuple with the TransactionId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetTransactionIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.TransactionId) {
|
|
return nil, false
|
|
}
|
|
return o.TransactionId, true
|
|
}
|
|
|
|
// HasTransactionId returns a boolean if a field has been set.
|
|
func (o *Message) HasTransactionId() bool {
|
|
if o != nil && !IsNil(o.TransactionId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTransactionId gets a reference to the given string and assigns it to the TransactionId field.
|
|
func (o *Message) SetTransactionId(v string) {
|
|
o.TransactionId = &v
|
|
}
|
|
|
|
// GetUser returns the User field value if set, zero value otherwise.
|
|
func (o *Message) GetUser() string {
|
|
if o == nil || IsNil(o.User) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.User
|
|
}
|
|
|
|
// GetUserOk returns a tuple with the User field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetUserOk() (*string, bool) {
|
|
if o == nil || IsNil(o.User) {
|
|
return nil, false
|
|
}
|
|
return o.User, true
|
|
}
|
|
|
|
// HasUser returns a boolean if a field has been set.
|
|
func (o *Message) HasUser() bool {
|
|
if o != nil && !IsNil(o.User) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUser gets a reference to the given string and assigns it to the User field.
|
|
func (o *Message) SetUser(v string) {
|
|
o.User = &v
|
|
}
|
|
|
|
// GetVectorScores returns the VectorScores field value if set, zero value otherwise.
|
|
func (o *Message) GetVectorScores() []VectorScore {
|
|
if o == nil || IsNil(o.VectorScores) {
|
|
var ret []VectorScore
|
|
return ret
|
|
}
|
|
return o.VectorScores
|
|
}
|
|
|
|
// GetVectorScoresOk returns a tuple with the VectorScores field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetVectorScoresOk() ([]VectorScore, bool) {
|
|
if o == nil || IsNil(o.VectorScores) {
|
|
return nil, false
|
|
}
|
|
return o.VectorScores, true
|
|
}
|
|
|
|
// HasVectorScores returns a boolean if a field has been set.
|
|
func (o *Message) HasVectorScores() bool {
|
|
if o != nil && !IsNil(o.VectorScores) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVectorScores gets a reference to the given []VectorScore and assigns it to the VectorScores field.
|
|
func (o *Message) SetVectorScores(v []VectorScore) {
|
|
o.VectorScores = v
|
|
}
|
|
|
|
// GetWebSearchEnabled returns the WebSearchEnabled field value if set, zero value otherwise.
|
|
func (o *Message) GetWebSearchEnabled() bool {
|
|
if o == nil || IsNil(o.WebSearchEnabled) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.WebSearchEnabled
|
|
}
|
|
|
|
// GetWebSearchEnabledOk returns a tuple with the WebSearchEnabled field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Message) GetWebSearchEnabledOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.WebSearchEnabled) {
|
|
return nil, false
|
|
}
|
|
return o.WebSearchEnabled, true
|
|
}
|
|
|
|
// HasWebSearchEnabled returns a boolean if a field has been set.
|
|
func (o *Message) HasWebSearchEnabled() bool {
|
|
if o != nil && !IsNil(o.WebSearchEnabled) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetWebSearchEnabled gets a reference to the given bool and assigns it to the WebSearchEnabled field.
|
|
func (o *Message) SetWebSearchEnabled(v bool) {
|
|
o.WebSearchEnabled = &v
|
|
}
|
|
|
|
func (o Message) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o Message) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AnsweredTime) {
|
|
toSerialize["answeredTime"] = o.AnsweredTime
|
|
}
|
|
if !IsNil(o.Author) {
|
|
toSerialize["author"] = o.Author
|
|
}
|
|
if !IsNil(o.Chat) {
|
|
toSerialize["chat"] = o.Chat
|
|
}
|
|
if !IsNil(o.ClaimedTime) {
|
|
toSerialize["claimedTime"] = o.ClaimedTime
|
|
}
|
|
if !IsNil(o.Comment) {
|
|
toSerialize["comment"] = o.Comment
|
|
}
|
|
if !IsNil(o.CreatedTime) {
|
|
toSerialize["createdTime"] = o.CreatedTime
|
|
}
|
|
if !IsNil(o.Currency) {
|
|
toSerialize["currency"] = o.Currency
|
|
}
|
|
if !IsNil(o.DislikeUsers) {
|
|
toSerialize["dislikeUsers"] = o.DislikeUsers
|
|
}
|
|
if !IsNil(o.EmbeddingProvider) {
|
|
toSerialize["embeddingProvider"] = o.EmbeddingProvider
|
|
}
|
|
if !IsNil(o.ErrorText) {
|
|
toSerialize["errorText"] = o.ErrorText
|
|
}
|
|
if !IsNil(o.FileName) {
|
|
toSerialize["fileName"] = o.FileName
|
|
}
|
|
if !IsNil(o.IsAlerted) {
|
|
toSerialize["isAlerted"] = o.IsAlerted
|
|
}
|
|
if !IsNil(o.IsDeleted) {
|
|
toSerialize["isDeleted"] = o.IsDeleted
|
|
}
|
|
if !IsNil(o.IsHidden) {
|
|
toSerialize["isHidden"] = o.IsHidden
|
|
}
|
|
if !IsNil(o.IsRegenerated) {
|
|
toSerialize["isRegenerated"] = o.IsRegenerated
|
|
}
|
|
if !IsNil(o.LikeUsers) {
|
|
toSerialize["likeUsers"] = o.LikeUsers
|
|
}
|
|
if !IsNil(o.ModelProvider) {
|
|
toSerialize["modelProvider"] = o.ModelProvider
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.NeedNotify) {
|
|
toSerialize["needNotify"] = o.NeedNotify
|
|
}
|
|
if !IsNil(o.Organization) {
|
|
toSerialize["organization"] = o.Organization
|
|
}
|
|
if !IsNil(o.Owner) {
|
|
toSerialize["owner"] = o.Owner
|
|
}
|
|
if !IsNil(o.Price) {
|
|
toSerialize["price"] = o.Price
|
|
}
|
|
if !IsNil(o.ReasonText) {
|
|
toSerialize["reasonText"] = o.ReasonText
|
|
}
|
|
if !IsNil(o.ReplyTo) {
|
|
toSerialize["replyTo"] = o.ReplyTo
|
|
}
|
|
if !IsNil(o.SearchResults) {
|
|
toSerialize["searchResults"] = o.SearchResults
|
|
}
|
|
if !IsNil(o.Store) {
|
|
toSerialize["store"] = o.Store
|
|
}
|
|
if !IsNil(o.Suggestions) {
|
|
toSerialize["suggestions"] = o.Suggestions
|
|
}
|
|
if !IsNil(o.Text) {
|
|
toSerialize["text"] = o.Text
|
|
}
|
|
if !IsNil(o.TextTokenCount) {
|
|
toSerialize["textTokenCount"] = o.TextTokenCount
|
|
}
|
|
if !IsNil(o.TokenCount) {
|
|
toSerialize["tokenCount"] = o.TokenCount
|
|
}
|
|
if !IsNil(o.ToolCalls) {
|
|
toSerialize["toolCalls"] = o.ToolCalls
|
|
}
|
|
if !IsNil(o.TransactionId) {
|
|
toSerialize["transactionId"] = o.TransactionId
|
|
}
|
|
if !IsNil(o.User) {
|
|
toSerialize["user"] = o.User
|
|
}
|
|
if !IsNil(o.VectorScores) {
|
|
toSerialize["vectorScores"] = o.VectorScores
|
|
}
|
|
if !IsNil(o.WebSearchEnabled) {
|
|
toSerialize["webSearchEnabled"] = o.WebSearchEnabled
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *Message) UnmarshalJSON(data []byte) (err error) {
|
|
varMessage := _Message{}
|
|
|
|
err = json.Unmarshal(data, &varMessage)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = Message(varMessage)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "answeredTime")
|
|
delete(additionalProperties, "author")
|
|
delete(additionalProperties, "chat")
|
|
delete(additionalProperties, "claimedTime")
|
|
delete(additionalProperties, "comment")
|
|
delete(additionalProperties, "createdTime")
|
|
delete(additionalProperties, "currency")
|
|
delete(additionalProperties, "dislikeUsers")
|
|
delete(additionalProperties, "embeddingProvider")
|
|
delete(additionalProperties, "errorText")
|
|
delete(additionalProperties, "fileName")
|
|
delete(additionalProperties, "isAlerted")
|
|
delete(additionalProperties, "isDeleted")
|
|
delete(additionalProperties, "isHidden")
|
|
delete(additionalProperties, "isRegenerated")
|
|
delete(additionalProperties, "likeUsers")
|
|
delete(additionalProperties, "modelProvider")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "needNotify")
|
|
delete(additionalProperties, "organization")
|
|
delete(additionalProperties, "owner")
|
|
delete(additionalProperties, "price")
|
|
delete(additionalProperties, "reasonText")
|
|
delete(additionalProperties, "replyTo")
|
|
delete(additionalProperties, "searchResults")
|
|
delete(additionalProperties, "store")
|
|
delete(additionalProperties, "suggestions")
|
|
delete(additionalProperties, "text")
|
|
delete(additionalProperties, "textTokenCount")
|
|
delete(additionalProperties, "tokenCount")
|
|
delete(additionalProperties, "toolCalls")
|
|
delete(additionalProperties, "transactionId")
|
|
delete(additionalProperties, "user")
|
|
delete(additionalProperties, "vectorScores")
|
|
delete(additionalProperties, "webSearchEnabled")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableMessage struct {
|
|
value *Message
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableMessage) Get() *Message {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableMessage) Set(val *Message) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableMessage) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableMessage) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableMessage(val *Message) *NullableMessage {
|
|
return &NullableMessage{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableMessage) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableMessage) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|