8.1 KiB
TranslateReviewRequest
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Format | Pointer to string | Format is the markup the source carries: text (the default), html or markdown. Part of the entry's identity. | [optional] |
| Glossary | Pointer to map[string]string | Glossary is the terminology the entry was translated under. Its VERSION — the digest of the sorted terms — is part of the entry's identity, so editing a term yields a new entry rather than overwriting the old rendering. | [optional] |
| Lang | Pointer to string | Lang is the source language the translate calls this entry serves declare (their `source`), empty for calls that let the engine detect it. Part of the entry's identity; an entry with none also serves calls that declare one. | [optional] |
| Model | Pointer to string | Model is the quality-tier model the translate calls this entry serves name; empty for the default. Part of the entry's identity, and refused with bulk. | [optional] |
| Source | Pointer to string | Source is the ORIGINAL string this entry translates. Required; part of the entry's identity, so a different source is a different entry. | [optional] |
| State | Pointer to string | State is the entry's new position on the review ladder: suggested, approved or published. `machine` is engine-only and is refused here — a human may not demote a string back into the churn. | [optional] |
| Target | Pointer to string | Target is the target language tag (BCP-47, e.g. "es" or "pt-BR"). Required; part of the entry's identity. | [optional] |
| Text | Pointer to string | Text is the reviewed translation to store. A human write always wins over the stored value. | [optional] |
| Tier | Pointer to string | Tier is the engine tier the entry belongs to, quality (the default) or bulk. Part of the entry's identity: the two tiers keep separate renderings. | [optional] |
Methods
NewTranslateReviewRequest
func NewTranslateReviewRequest() *TranslateReviewRequest
NewTranslateReviewRequest instantiates a new TranslateReviewRequest 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
NewTranslateReviewRequestWithDefaults
func NewTranslateReviewRequestWithDefaults() *TranslateReviewRequest
NewTranslateReviewRequestWithDefaults instantiates a new TranslateReviewRequest 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
GetFormat
func (o *TranslateReviewRequest) GetFormat() string
GetFormat returns the Format field if non-nil, zero value otherwise.
GetFormatOk
func (o *TranslateReviewRequest) GetFormatOk() (*string, bool)
GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetFormat
func (o *TranslateReviewRequest) SetFormat(v string)
SetFormat sets Format field to given value.
HasFormat
func (o *TranslateReviewRequest) HasFormat() bool
HasFormat returns a boolean if a field has been set.
GetGlossary
func (o *TranslateReviewRequest) GetGlossary() map[string]string
GetGlossary returns the Glossary field if non-nil, zero value otherwise.
GetGlossaryOk
func (o *TranslateReviewRequest) GetGlossaryOk() (*map[string]string, bool)
GetGlossaryOk returns a tuple with the Glossary field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetGlossary
func (o *TranslateReviewRequest) SetGlossary(v map[string]string)
SetGlossary sets Glossary field to given value.
HasGlossary
func (o *TranslateReviewRequest) HasGlossary() bool
HasGlossary returns a boolean if a field has been set.
GetLang
func (o *TranslateReviewRequest) GetLang() string
GetLang returns the Lang field if non-nil, zero value otherwise.
GetLangOk
func (o *TranslateReviewRequest) GetLangOk() (*string, bool)
GetLangOk returns a tuple with the Lang field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLang
func (o *TranslateReviewRequest) SetLang(v string)
SetLang sets Lang field to given value.
HasLang
func (o *TranslateReviewRequest) HasLang() bool
HasLang returns a boolean if a field has been set.
GetModel
func (o *TranslateReviewRequest) GetModel() string
GetModel returns the Model field if non-nil, zero value otherwise.
GetModelOk
func (o *TranslateReviewRequest) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetModel
func (o *TranslateReviewRequest) SetModel(v string)
SetModel sets Model field to given value.
HasModel
func (o *TranslateReviewRequest) HasModel() bool
HasModel returns a boolean if a field has been set.
GetSource
func (o *TranslateReviewRequest) GetSource() string
GetSource returns the Source field if non-nil, zero value otherwise.
GetSourceOk
func (o *TranslateReviewRequest) GetSourceOk() (*string, bool)
GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSource
func (o *TranslateReviewRequest) SetSource(v string)
SetSource sets Source field to given value.
HasSource
func (o *TranslateReviewRequest) HasSource() bool
HasSource returns a boolean if a field has been set.
GetState
func (o *TranslateReviewRequest) GetState() string
GetState returns the State field if non-nil, zero value otherwise.
GetStateOk
func (o *TranslateReviewRequest) GetStateOk() (*string, bool)
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetState
func (o *TranslateReviewRequest) SetState(v string)
SetState sets State field to given value.
HasState
func (o *TranslateReviewRequest) HasState() bool
HasState returns a boolean if a field has been set.
GetTarget
func (o *TranslateReviewRequest) GetTarget() string
GetTarget returns the Target field if non-nil, zero value otherwise.
GetTargetOk
func (o *TranslateReviewRequest) GetTargetOk() (*string, bool)
GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTarget
func (o *TranslateReviewRequest) SetTarget(v string)
SetTarget sets Target field to given value.
HasTarget
func (o *TranslateReviewRequest) HasTarget() bool
HasTarget returns a boolean if a field has been set.
GetText
func (o *TranslateReviewRequest) GetText() string
GetText returns the Text field if non-nil, zero value otherwise.
GetTextOk
func (o *TranslateReviewRequest) 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 *TranslateReviewRequest) SetText(v string)
SetText sets Text field to given value.
HasText
func (o *TranslateReviewRequest) HasText() bool
HasText returns a boolean if a field has been set.
GetTier
func (o *TranslateReviewRequest) GetTier() string
GetTier returns the Tier field if non-nil, zero value otherwise.
GetTierOk
func (o *TranslateReviewRequest) GetTierOk() (*string, bool)
GetTierOk returns a tuple with the Tier field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTier
func (o *TranslateReviewRequest) SetTier(v string)
SetTier sets Tier field to given value.
HasTier
func (o *TranslateReviewRequest) HasTier() bool
HasTier returns a boolean if a field has been set.