GoodMem
ReferenceClient SDKsGo SDKModels

Memory Model

Memory Model documentation for Go SDK

Properties

NameTypeDescriptionNotes
MemoryIdstringUnique identifier of the memory
SpaceIdstringID of the space containing this memory
OriginalContentPointer to Nullable*os.FileOriginal content (only included if requested)[optional]
OriginalContentLengthPointer to NullableInt64Size in bytes of the inline original content[optional]
OriginalContentSha256Pointer to NullableStringSHA-256 digest of the inline original content, hex encoded[optional]
OriginalContentRefPointer to NullableStringReference to external content location[optional]
ContentTypestringMIME type of the content
ProcessingStatusstringProcessing status of the memory
MetadataPointer to map[string]interfaceAdditional metadata for the memory[optional]
CreatedAtint64Timestamp when the memory was created (milliseconds since epoch)
UpdatedAtint64Timestamp when the memory was last updated (milliseconds since epoch)
CreatedByIdstringID of the user who created this memory
UpdatedByIdstringID of the user who last updated this memory
ChunkingConfigPointer to ChunkingConfiguration[optional]
ProcessingHistoryPointer to ProcessingHistory[optional]

Methods

NewMemory

func NewMemory(memoryId string, spaceId string, contentType string, processingStatus string, createdAt int64, updatedAt int64, createdById string, updatedById string, ) *Memory

NewMemory instantiates a new Memory 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

NewMemoryWithDefaults

func NewMemoryWithDefaults() *Memory

NewMemoryWithDefaults instantiates a new Memory 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 *Memory) GetMemoryId() string

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

GetMemoryIdOk

func (o *Memory) 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 *Memory) SetMemoryId(v string)

SetMemoryId sets MemoryId field to given value.

GetSpaceId

func (o *Memory) GetSpaceId() string

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

GetSpaceIdOk

func (o *Memory) 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 *Memory) SetSpaceId(v string)

SetSpaceId sets SpaceId field to given value.

GetOriginalContent

func (o *Memory) GetOriginalContent() *os.File

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

GetOriginalContentOk

func (o *Memory) GetOriginalContentOk() (**os.File, 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 *Memory) SetOriginalContent(v *os.File)

SetOriginalContent sets OriginalContent field to given value.

HasOriginalContent

func (o *Memory) HasOriginalContent() bool

HasOriginalContent returns a boolean if a field has been set.

SetOriginalContentNil

func (o *Memory) SetOriginalContentNil(b bool)

SetOriginalContentNil sets the value for OriginalContent to be an explicit nil

UnsetOriginalContent

func (o *Memory) UnsetOriginalContent()

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

GetOriginalContentLength

func (o *Memory) GetOriginalContentLength() int64

GetOriginalContentLength returns the OriginalContentLength field if non-nil, zero value otherwise.

GetOriginalContentLengthOk

func (o *Memory) GetOriginalContentLengthOk() (*int64, bool)

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

SetOriginalContentLength

func (o *Memory) SetOriginalContentLength(v int64)

SetOriginalContentLength sets OriginalContentLength field to given value.

HasOriginalContentLength

func (o *Memory) HasOriginalContentLength() bool

HasOriginalContentLength returns a boolean if a field has been set.

SetOriginalContentLengthNil

func (o *Memory) SetOriginalContentLengthNil(b bool)

SetOriginalContentLengthNil sets the value for OriginalContentLength to be an explicit nil

UnsetOriginalContentLength

func (o *Memory) UnsetOriginalContentLength()

UnsetOriginalContentLength ensures that no value is present for OriginalContentLength, not even an explicit nil

GetOriginalContentSha256

func (o *Memory) GetOriginalContentSha256() string

GetOriginalContentSha256 returns the OriginalContentSha256 field if non-nil, zero value otherwise.

GetOriginalContentSha256Ok

func (o *Memory) GetOriginalContentSha256Ok() (*string, bool)

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

SetOriginalContentSha256

func (o *Memory) SetOriginalContentSha256(v string)

SetOriginalContentSha256 sets OriginalContentSha256 field to given value.

HasOriginalContentSha256

func (o *Memory) HasOriginalContentSha256() bool

HasOriginalContentSha256 returns a boolean if a field has been set.

SetOriginalContentSha256Nil

func (o *Memory) SetOriginalContentSha256Nil(b bool)

SetOriginalContentSha256Nil sets the value for OriginalContentSha256 to be an explicit nil

UnsetOriginalContentSha256

func (o *Memory) UnsetOriginalContentSha256()

UnsetOriginalContentSha256 ensures that no value is present for OriginalContentSha256, not even an explicit nil

GetOriginalContentRef

func (o *Memory) GetOriginalContentRef() string

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

GetOriginalContentRefOk

func (o *Memory) 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 *Memory) SetOriginalContentRef(v string)

SetOriginalContentRef sets OriginalContentRef field to given value.

HasOriginalContentRef

func (o *Memory) HasOriginalContentRef() bool

HasOriginalContentRef returns a boolean if a field has been set.

SetOriginalContentRefNil

func (o *Memory) SetOriginalContentRefNil(b bool)

SetOriginalContentRefNil sets the value for OriginalContentRef to be an explicit nil

UnsetOriginalContentRef

func (o *Memory) UnsetOriginalContentRef()

UnsetOriginalContentRef ensures that no value is present for OriginalContentRef, not even an explicit nil

GetContentType

func (o *Memory) GetContentType() string

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

GetContentTypeOk

func (o *Memory) 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 *Memory) SetContentType(v string)

SetContentType sets ContentType field to given value.

GetProcessingStatus

func (o *Memory) GetProcessingStatus() string

GetProcessingStatus returns the ProcessingStatus field if non-nil, zero value otherwise.

GetProcessingStatusOk

func (o *Memory) GetProcessingStatusOk() (*string, bool)

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

SetProcessingStatus

func (o *Memory) SetProcessingStatus(v string)

SetProcessingStatus sets ProcessingStatus field to given value.

GetMetadata

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

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

GetMetadataOk

func (o *Memory) 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 *Memory) SetMetadata(v map[string]interface{})

SetMetadata sets Metadata field to given value.

HasMetadata

func (o *Memory) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

SetMetadataNil

func (o *Memory) SetMetadataNil(b bool)

SetMetadataNil sets the value for Metadata to be an explicit nil

UnsetMetadata

func (o *Memory) UnsetMetadata()

UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil

GetCreatedAt

func (o *Memory) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *Memory) GetCreatedAtOk() (*int64, bool)

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

SetCreatedAt

func (o *Memory) SetCreatedAt(v int64)

SetCreatedAt sets CreatedAt field to given value.

GetUpdatedAt

func (o *Memory) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

GetUpdatedAtOk

func (o *Memory) GetUpdatedAtOk() (*int64, bool)

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

SetUpdatedAt

func (o *Memory) SetUpdatedAt(v int64)

SetUpdatedAt sets UpdatedAt field to given value.

GetCreatedById

func (o *Memory) GetCreatedById() string

GetCreatedById returns the CreatedById field if non-nil, zero value otherwise.

GetCreatedByIdOk

func (o *Memory) GetCreatedByIdOk() (*string, bool)

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

SetCreatedById

func (o *Memory) SetCreatedById(v string)

SetCreatedById sets CreatedById field to given value.

GetUpdatedById

func (o *Memory) GetUpdatedById() string

GetUpdatedById returns the UpdatedById field if non-nil, zero value otherwise.

GetUpdatedByIdOk

func (o *Memory) GetUpdatedByIdOk() (*string, bool)

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

SetUpdatedById

func (o *Memory) SetUpdatedById(v string)

SetUpdatedById sets UpdatedById field to given value.

GetChunkingConfig

func (o *Memory) GetChunkingConfig() ChunkingConfiguration

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

GetChunkingConfigOk

func (o *Memory) 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 *Memory) SetChunkingConfig(v ChunkingConfiguration)

SetChunkingConfig sets ChunkingConfig field to given value.

HasChunkingConfig

func (o *Memory) HasChunkingConfig() bool

HasChunkingConfig returns a boolean if a field has been set.

GetProcessingHistory

func (o *Memory) GetProcessingHistory() ProcessingHistory

GetProcessingHistory returns the ProcessingHistory field if non-nil, zero value otherwise.

GetProcessingHistoryOk

func (o *Memory) GetProcessingHistoryOk() (*ProcessingHistory, bool)

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

SetProcessingHistory

func (o *Memory) SetProcessingHistory(v ProcessingHistory)

SetProcessingHistory sets ProcessingHistory field to given value.

HasProcessingHistory

func (o *Memory) HasProcessingHistory() bool

HasProcessingHistory returns a boolean if a field has been set.

↑ Back to Go SDK ↑ Back to Go SDK ↑ Back to Go SDK