GoodMem
ReferenceClient SDKsGoRequests

JsonMemoryCreationRequest

JsonMemoryCreationRequest documentation for Go SDK

Properties

NameTypeDescriptionNotes
MemoryIdPointer to stringOptional client-provided UUID for the memory. If omitted, the server generates one. Returns ALREADY_EXISTS if the ID is already in use.[optional]
SpaceIdstringID of the space where this memory will be stored
OriginalContentinterface
OriginalContentB64interface
OriginalContentRefPointer to stringReference to external content location[optional]
ContentTypestringMIME type of the content
MetadataPointer to map[string]interfaceAdditional metadata for the memory[optional]
ChunkingConfigPointer to ChunkingConfiguration[optional]
ExtractPageImagesPointer to boolOptional hint to extract page images for eligible document types (for example, PDFs)[optional]
FileFieldPointer to stringOptional multipart file field name to bind binary content; required when multiple files are uploaded in a batch multipart request.[optional]

Methods

NewJsonMemoryCreationRequest

func NewJsonMemoryCreationRequest(spaceId string, originalContent interface{}, originalContentB64 interface{}, contentType string, ) *JsonMemoryCreationRequest

NewJsonMemoryCreationRequest instantiates a new JsonMemoryCreationRequest 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

NewJsonMemoryCreationRequestWithDefaults

func NewJsonMemoryCreationRequestWithDefaults() *JsonMemoryCreationRequest

NewJsonMemoryCreationRequestWithDefaults instantiates a new JsonMemoryCreationRequest 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

GetMemoryId

func (o *JsonMemoryCreationRequest) GetMemoryId() string

GetMemoryId returns the MemoryId field if non-nil, zero value otherwise.

GetMemoryIdOk

func (o *JsonMemoryCreationRequest) GetMemoryIdOk() (*string, bool)

GetMemoryIdOk returns a tuple with the MemoryId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMemoryId

func (o *JsonMemoryCreationRequest) SetMemoryId(v string)

SetMemoryId sets MemoryId field to given value.

HasMemoryId

func (o *JsonMemoryCreationRequest) HasMemoryId() bool

HasMemoryId returns a boolean if a field has been set.

GetSpaceId

func (o *JsonMemoryCreationRequest) GetSpaceId() string

GetSpaceId returns the SpaceId field if non-nil, zero value otherwise.

GetSpaceIdOk

func (o *JsonMemoryCreationRequest) GetSpaceIdOk() (*string, bool)

GetSpaceIdOk returns a tuple with the SpaceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSpaceId

func (o *JsonMemoryCreationRequest) SetSpaceId(v string)

SetSpaceId sets SpaceId field to given value.

GetOriginalContent

func (o *JsonMemoryCreationRequest) GetOriginalContent() interface{}

GetOriginalContent returns the OriginalContent field if non-nil, zero value otherwise.

GetOriginalContentOk

func (o *JsonMemoryCreationRequest) GetOriginalContentOk() (*interface{}, bool)

GetOriginalContentOk returns a tuple with the OriginalContent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOriginalContent

func (o *JsonMemoryCreationRequest) SetOriginalContent(v interface{})

SetOriginalContent sets OriginalContent field to given value.

SetOriginalContentNil

func (o *JsonMemoryCreationRequest) SetOriginalContentNil(b bool)

SetOriginalContentNil sets the value for OriginalContent to be an explicit nil

UnsetOriginalContent

func (o *JsonMemoryCreationRequest) UnsetOriginalContent()

UnsetOriginalContent ensures that no value is present for OriginalContent, not even an explicit nil

GetOriginalContentB64

func (o *JsonMemoryCreationRequest) GetOriginalContentB64() interface{}

GetOriginalContentB64 returns the OriginalContentB64 field if non-nil, zero value otherwise.

GetOriginalContentB64Ok

func (o *JsonMemoryCreationRequest) GetOriginalContentB64Ok() (*interface{}, bool)

GetOriginalContentB64Ok returns a tuple with the OriginalContentB64 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOriginalContentB64

func (o *JsonMemoryCreationRequest) SetOriginalContentB64(v interface{})

SetOriginalContentB64 sets OriginalContentB64 field to given value.

SetOriginalContentB64Nil

func (o *JsonMemoryCreationRequest) SetOriginalContentB64Nil(b bool)

SetOriginalContentB64Nil sets the value for OriginalContentB64 to be an explicit nil

UnsetOriginalContentB64

func (o *JsonMemoryCreationRequest) UnsetOriginalContentB64()

UnsetOriginalContentB64 ensures that no value is present for OriginalContentB64, not even an explicit nil

GetOriginalContentRef

func (o *JsonMemoryCreationRequest) GetOriginalContentRef() string

GetOriginalContentRef returns the OriginalContentRef field if non-nil, zero value otherwise.

GetOriginalContentRefOk

func (o *JsonMemoryCreationRequest) GetOriginalContentRefOk() (*string, bool)

GetOriginalContentRefOk returns a tuple with the OriginalContentRef field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOriginalContentRef

func (o *JsonMemoryCreationRequest) SetOriginalContentRef(v string)

SetOriginalContentRef sets OriginalContentRef field to given value.

HasOriginalContentRef

func (o *JsonMemoryCreationRequest) HasOriginalContentRef() bool

HasOriginalContentRef returns a boolean if a field has been set.

GetContentType

func (o *JsonMemoryCreationRequest) GetContentType() string

GetContentType returns the ContentType field if non-nil, zero value otherwise.

GetContentTypeOk

func (o *JsonMemoryCreationRequest) GetContentTypeOk() (*string, bool)

GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetContentType

func (o *JsonMemoryCreationRequest) SetContentType(v string)

SetContentType sets ContentType field to given value.

GetMetadata

func (o *JsonMemoryCreationRequest) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field if non-nil, zero value otherwise.

GetMetadataOk

func (o *JsonMemoryCreationRequest) GetMetadataOk() (*map[string]interface{}, bool)

GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMetadata

func (o *JsonMemoryCreationRequest) SetMetadata(v map[string]interface{})

SetMetadata sets Metadata field to given value.

HasMetadata

func (o *JsonMemoryCreationRequest) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

GetChunkingConfig

func (o *JsonMemoryCreationRequest) GetChunkingConfig() ChunkingConfiguration

GetChunkingConfig returns the ChunkingConfig field if non-nil, zero value otherwise.

GetChunkingConfigOk

func (o *JsonMemoryCreationRequest) GetChunkingConfigOk() (*ChunkingConfiguration, bool)

GetChunkingConfigOk returns a tuple with the ChunkingConfig field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetChunkingConfig

func (o *JsonMemoryCreationRequest) SetChunkingConfig(v ChunkingConfiguration)

SetChunkingConfig sets ChunkingConfig field to given value.

HasChunkingConfig

func (o *JsonMemoryCreationRequest) HasChunkingConfig() bool

HasChunkingConfig returns a boolean if a field has been set.

GetExtractPageImages

func (o *JsonMemoryCreationRequest) GetExtractPageImages() bool

GetExtractPageImages returns the ExtractPageImages field if non-nil, zero value otherwise.

GetExtractPageImagesOk

func (o *JsonMemoryCreationRequest) GetExtractPageImagesOk() (*bool, bool)

GetExtractPageImagesOk returns a tuple with the ExtractPageImages field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetExtractPageImages

func (o *JsonMemoryCreationRequest) SetExtractPageImages(v bool)

SetExtractPageImages sets ExtractPageImages field to given value.

HasExtractPageImages

func (o *JsonMemoryCreationRequest) HasExtractPageImages() bool

HasExtractPageImages returns a boolean if a field has been set.

GetFileField

func (o *JsonMemoryCreationRequest) GetFileField() string

GetFileField returns the FileField field if non-nil, zero value otherwise.

GetFileFieldOk

func (o *JsonMemoryCreationRequest) GetFileFieldOk() (*string, bool)

GetFileFieldOk returns a tuple with the FileField field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFileField

func (o *JsonMemoryCreationRequest) SetFileField(v string)

SetFileField sets FileField field to given value.

HasFileField

func (o *JsonMemoryCreationRequest) HasFileField() bool

HasFileField returns a boolean if a field has been set.