Skip to content

Latest commit

 

History

History
259 lines (140 loc) · 10.1 KB

Collation.md

File metadata and controls

259 lines (140 loc) · 10.1 KB

Collation

Properties

Name Type Description Notes
Alternate Pointer to string Method to handle whitespace and punctuation as base characters for purposes of comparison. Value
Backwards Pointer to bool Flag that indicates whether strings with diacritics sort from back of the string. Some French dictionary orders strings in this way. Value
CaseFirst Pointer to string Method to handle sort order of case differences during tertiary level comparisons. Value
CaseLevel Pointer to bool Flag that indicates whether to include case comparison when `"strength" : 1` or `"strength" : 2`. Value
Locale string International Components for Unicode (ICU) code that represents a localized language. To specify simple binary comparison, set `"locale" : "simple"`.
MaxVariable Pointer to string Field that indicates which characters can be ignored when `"alternate" : "shifted"`. This has no affect if `"alternate" : "non-ignorable"`. Value
Normalization Pointer to bool Flag that indicates whether to check if the text requires normalization and then perform it. Most text doesn't require this normalization processing. Value
NumericOrdering Pointer to bool Flag that indicates whether to compare sequences of digits as numbers or as strings. Value
Strength Pointer to int32 Degree of comparison to perform when sorting words. MongoDB Cloud accepts the following values: Value

Methods

NewCollation

func NewCollation(locale string, ) *Collation

NewCollation instantiates a new Collation 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

NewCollationWithDefaults

func NewCollationWithDefaults() *Collation

NewCollationWithDefaults instantiates a new Collation 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

GetAlternate

func (o *Collation) GetAlternate() string

GetAlternate returns the Alternate field if non-nil, zero value otherwise.

GetAlternateOk

func (o *Collation) GetAlternateOk() (*string, bool)

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

SetAlternate

func (o *Collation) SetAlternate(v string)

SetAlternate sets Alternate field to given value.

HasAlternate

func (o *Collation) HasAlternate() bool

HasAlternate returns a boolean if a field has been set.

GetBackwards

func (o *Collation) GetBackwards() bool

GetBackwards returns the Backwards field if non-nil, zero value otherwise.

GetBackwardsOk

func (o *Collation) GetBackwardsOk() (*bool, bool)

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

SetBackwards

func (o *Collation) SetBackwards(v bool)

SetBackwards sets Backwards field to given value.

HasBackwards

func (o *Collation) HasBackwards() bool

HasBackwards returns a boolean if a field has been set.

GetCaseFirst

func (o *Collation) GetCaseFirst() string

GetCaseFirst returns the CaseFirst field if non-nil, zero value otherwise.

GetCaseFirstOk

func (o *Collation) GetCaseFirstOk() (*string, bool)

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

SetCaseFirst

func (o *Collation) SetCaseFirst(v string)

SetCaseFirst sets CaseFirst field to given value.

HasCaseFirst

func (o *Collation) HasCaseFirst() bool

HasCaseFirst returns a boolean if a field has been set.

GetCaseLevel

func (o *Collation) GetCaseLevel() bool

GetCaseLevel returns the CaseLevel field if non-nil, zero value otherwise.

GetCaseLevelOk

func (o *Collation) GetCaseLevelOk() (*bool, bool)

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

SetCaseLevel

func (o *Collation) SetCaseLevel(v bool)

SetCaseLevel sets CaseLevel field to given value.

HasCaseLevel

func (o *Collation) HasCaseLevel() bool

HasCaseLevel returns a boolean if a field has been set.

GetLocale

func (o *Collation) GetLocale() string

GetLocale returns the Locale field if non-nil, zero value otherwise.

GetLocaleOk

func (o *Collation) GetLocaleOk() (*string, bool)

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

SetLocale

func (o *Collation) SetLocale(v string)

SetLocale sets Locale field to given value.

GetMaxVariable

func (o *Collation) GetMaxVariable() string

GetMaxVariable returns the MaxVariable field if non-nil, zero value otherwise.

GetMaxVariableOk

func (o *Collation) GetMaxVariableOk() (*string, bool)

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

SetMaxVariable

func (o *Collation) SetMaxVariable(v string)

SetMaxVariable sets MaxVariable field to given value.

HasMaxVariable

func (o *Collation) HasMaxVariable() bool

HasMaxVariable returns a boolean if a field has been set.

GetNormalization

func (o *Collation) GetNormalization() bool

GetNormalization returns the Normalization field if non-nil, zero value otherwise.

GetNormalizationOk

func (o *Collation) GetNormalizationOk() (*bool, bool)

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

SetNormalization

func (o *Collation) SetNormalization(v bool)

SetNormalization sets Normalization field to given value.

HasNormalization

func (o *Collation) HasNormalization() bool

HasNormalization returns a boolean if a field has been set.

GetNumericOrdering

func (o *Collation) GetNumericOrdering() bool

GetNumericOrdering returns the NumericOrdering field if non-nil, zero value otherwise.

GetNumericOrderingOk

func (o *Collation) GetNumericOrderingOk() (*bool, bool)

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

SetNumericOrdering

func (o *Collation) SetNumericOrdering(v bool)

SetNumericOrdering sets NumericOrdering field to given value.

HasNumericOrdering

func (o *Collation) HasNumericOrdering() bool

HasNumericOrdering returns a boolean if a field has been set.

GetStrength

func (o *Collation) GetStrength() int32

GetStrength returns the Strength field if non-nil, zero value otherwise.

GetStrengthOk

func (o *Collation) GetStrengthOk() (*int32, bool)

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

SetStrength

func (o *Collation) SetStrength(v int32)

SetStrength sets Strength field to given value.

HasStrength

func (o *Collation) HasStrength() bool

HasStrength returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]