GoodMem
ReferenceClient SDKsGo SDKRequests

MemoryCreationRequest

MemoryCreationRequest documentation for Go SDK

Properties

NameTypeDescriptionNotes
ValidatePointer to map[string]interface[optional]
SpaceIdstringID of the space where this memory will be stored
OriginalContentPointer to NullableStringOriginal content as plain text (use either this or originalContentB64)[optional]
OriginalContentB64Pointer to NullableStringOriginal content as base64-encoded binary data (use either this or originalContent)[optional]
OriginalContentRefPointer to NullableStringReference to external content location[optional]
ContentTypestringMIME type of the content
MetadataPointer to map[string]interfaceAdditional metadata for the memory[optional]
ChunkingConfigPointer to ChunkingConfiguration[optional]

Methods

NewMemoryCreationRequest

func NewMemoryCreationRequest(spaceId string, contentType string, ) *MemoryCreationRequest

NewMemoryCreationRequest instantiates a new MemoryCreationRequest 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

NewMemoryCreationRequestWithDefaults

func NewMemoryCreationRequestWithDefaults() *MemoryCreationRequest

NewMemoryCreationRequestWithDefaults instantiates a new MemoryCreationRequest 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

GetValidate

func (o *MemoryCreationRequest) GetValidate() map[string]interface{}

GetValidate returns the Validate field if non-nil, zero value otherwise.

GetValidateOk

func (o *MemoryCreationRequest) GetValidateOk() (*map[string]interface{}, bool)

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

SetValidate

func (o *MemoryCreationRequest) SetValidate(v map[string]interface{})

SetValidate sets Validate field to given value.

HasValidate

func (o *MemoryCreationRequest) HasValidate() bool

HasValidate returns a boolean if a field has been set.

GetSpaceId

func (o *MemoryCreationRequest) GetSpaceId() string

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

GetSpaceIdOk

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

SetSpaceId sets SpaceId field to given value.

GetOriginalContent

func (o *MemoryCreationRequest) GetOriginalContent() string

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

GetOriginalContentOk

func (o *MemoryCreationRequest) GetOriginalContentOk() (*string, 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 *MemoryCreationRequest) SetOriginalContent(v string)

SetOriginalContent sets OriginalContent field to given value.

HasOriginalContent

func (o *MemoryCreationRequest) HasOriginalContent() bool

HasOriginalContent returns a boolean if a field has been set.

SetOriginalContentNil

func (o *MemoryCreationRequest) SetOriginalContentNil(b bool)

SetOriginalContentNil sets the value for OriginalContent to be an explicit nil

UnsetOriginalContent

func (o *MemoryCreationRequest) UnsetOriginalContent()

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

GetOriginalContentB64

func (o *MemoryCreationRequest) GetOriginalContentB64() string

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

GetOriginalContentB64Ok

func (o *MemoryCreationRequest) GetOriginalContentB64Ok() (*string, 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 *MemoryCreationRequest) SetOriginalContentB64(v string)

SetOriginalContentB64 sets OriginalContentB64 field to given value.

HasOriginalContentB64

func (o *MemoryCreationRequest) HasOriginalContentB64() bool

HasOriginalContentB64 returns a boolean if a field has been set.

SetOriginalContentB64Nil

func (o *MemoryCreationRequest) SetOriginalContentB64Nil(b bool)

SetOriginalContentB64Nil sets the value for OriginalContentB64 to be an explicit nil

UnsetOriginalContentB64

func (o *MemoryCreationRequest) UnsetOriginalContentB64()

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

GetOriginalContentRef

func (o *MemoryCreationRequest) GetOriginalContentRef() string

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

GetOriginalContentRefOk

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

SetOriginalContentRef sets OriginalContentRef field to given value.

HasOriginalContentRef

func (o *MemoryCreationRequest) HasOriginalContentRef() bool

HasOriginalContentRef returns a boolean if a field has been set.

SetOriginalContentRefNil

func (o *MemoryCreationRequest) SetOriginalContentRefNil(b bool)

SetOriginalContentRefNil sets the value for OriginalContentRef to be an explicit nil

UnsetOriginalContentRef

func (o *MemoryCreationRequest) UnsetOriginalContentRef()

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

GetContentType

func (o *MemoryCreationRequest) GetContentType() string

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

GetContentTypeOk

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

SetContentType sets ContentType field to given value.

GetMetadata

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

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

GetMetadataOk

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

SetMetadata sets Metadata field to given value.

HasMetadata

func (o *MemoryCreationRequest) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

SetMetadataNil

func (o *MemoryCreationRequest) SetMetadataNil(b bool)

SetMetadataNil sets the value for Metadata to be an explicit nil

UnsetMetadata

func (o *MemoryCreationRequest) UnsetMetadata()

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

GetChunkingConfig

func (o *MemoryCreationRequest) GetChunkingConfig() ChunkingConfiguration

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

GetChunkingConfigOk

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

SetChunkingConfig sets ChunkingConfig field to given value.

HasChunkingConfig

func (o *MemoryCreationRequest) HasChunkingConfig() bool

HasChunkingConfig returns a boolean if a field has been set.

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