GoodMem
ReferenceClient SDKsGo SDKModels

ContextItem Model

ContextItem Model documentation for Go SDK

Properties

NameTypeDescriptionNotes
IsValidbool
TextPointer to NullableStringText content for this context item.[optional]
BinaryPointer to BinaryContent[optional]

Methods

NewContextItem

func NewContextItem(isValid bool, ) *ContextItem

NewContextItem instantiates a new ContextItem 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

NewContextItemWithDefaults

func NewContextItemWithDefaults() *ContextItem

NewContextItemWithDefaults instantiates a new ContextItem 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

GetIsValid

func (o *ContextItem) GetIsValid() bool

GetIsValid returns the IsValid field if non-nil, zero value otherwise.

GetIsValidOk

func (o *ContextItem) GetIsValidOk() (*bool, bool)

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

SetIsValid

func (o *ContextItem) SetIsValid(v bool)

SetIsValid sets IsValid field to given value.

GetText

func (o *ContextItem) GetText() string

GetText returns the Text field if non-nil, zero value otherwise.

GetTextOk

func (o *ContextItem) GetTextOk() (*string, bool)

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

SetText

func (o *ContextItem) SetText(v string)

SetText sets Text field to given value.

HasText

func (o *ContextItem) HasText() bool

HasText returns a boolean if a field has been set.

SetTextNil

func (o *ContextItem) SetTextNil(b bool)

SetTextNil sets the value for Text to be an explicit nil

UnsetText

func (o *ContextItem) UnsetText()

UnsetText ensures that no value is present for Text, not even an explicit nil

GetBinary

func (o *ContextItem) GetBinary() BinaryContent

GetBinary returns the Binary field if non-nil, zero value otherwise.

GetBinaryOk

func (o *ContextItem) GetBinaryOk() (*BinaryContent, bool)

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

SetBinary

func (o *ContextItem) SetBinary(v BinaryContent)

SetBinary sets Binary field to given value.

HasBinary

func (o *ContextItem) HasBinary() bool

HasBinary returns a boolean if a field has been set.

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